c# - How to get IOwinContext from SignalR hub? -



c# - How to get IOwinContext from SignalR hub? -

how access iowincontext signalr hub (for instance hubcallercontext)?

you can access iowincontext current connected client via hubcallercontext (context property of hub base of operations class):

context.request.gethttpcontext().getowincontext()

gethttpcontext extension under microsoft.aspnet.signalr , getowincontext extension under system.web, create sure you're using both of namespaces.

c# .net signalr owin signalr-hub

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -