标签: wcf
是Wcf Rest'WebHttpBinding'支持 [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]?
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
我的回复为
OperationContext.Current.SessionId;
答案 0 :(得分:0)
将ServiceContract属性更改为:
ServiceContract
[ServiceContract(SessionMode = SessionMode.Required)]