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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

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