开发者

WCF Singleton with Session Id

开发者 https://www.devze.com 2023-01-30 08:10 出处:网络
I have a WCF service mapped to 1 hardware device (printer). I want to lock/unlock the printer by client.

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

精彩评论

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

关注公众号