我写一个WCF客户端和正在使用的ChannelFactory创建我的代理人对我的服务:获取WCF的SessionID在客户端
[ServiceContract]
interface Service {
[OperationContract]
void Operation();
}
var proxy = ChannelFactory<MyServiceInterface>.CreateChannel(
new BasicHttpBinding(),
new EndpointAddress("http://localhost:8000/"));
我将如何去获取SessionID的?代理只具有基本的Object方法以及在MyServiceInterface中定义的方法。
预先感谢您。
我们无法看到您在MyServiceInterface中定义会话的方式 – MethodMan 2012-07-31 22:17:12