我寫一個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