绑定webHttpBinding不支持Session?

时间:2015-08-31 11:36:39

标签: wcf

是Wcf Rest'WebHttpBinding'支持 [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]

我的回复为

OperationContext.Current.SessionId;

1 个答案:

答案 0 :(得分:0)

ServiceContract属性更改为:

[ServiceContract(SessionMode = SessionMode.Required)]