I have a question. First, excuse me for my bad english, its not my native language. Then, I have a custom ProfileProvider, i need access to HttpCurrent.Context inside. If I call to my ProfileProvider "UserXXX.GetUserProfile" from an OperationController all is OK, but if i call it from XXXHub, HttpContext.Current is null. I was using SignalR 1.0, but i like update at version 2.0. Im using Framework 4.5, visual Studio 2012, IIS Express ith Integrated Mode and Windows 7.
Can you help me please?
Thank you
In your SignalR Hub, use:
System.Web.HttpContextBase httpContext = Context.Request.GetHttpContext();
Instead of HttpContext.Current.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With