开发者

WCF Singleton with Session Id

I have a WCF service mapped to 1 hardware device (printer). I want to lock/unlock the printer by client.

Is there a way to make a single instance of that service and also have session enabled? so i can get current user's session id? e.g OperationContext.Current.SessionID ? (sav开发者_如何学运维e it in a private field so i can sync access to the hardware device)

Thanks!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜