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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -