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!
精彩评论