You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This won't work because if NInject can't resolve a type it'll throw an exception, so it'll never check the base class.
Also, If that wasn't the case(which you can code a proper working example of what was trying to be accomplished), doing it this way, none of the hubs would have access to anything registered in the ninject kernel you pass in.
Really what would be required is to not to inherit from the DefaultDependencyInjector, but instead to inherit from the interface and build it out from scratch...which you actually wouldn't have to do if the default could return back a list of all registered services.
Anyway, this hasn't been updated in years and is probably long forgotten, but I figured maybe it'd make sense to raise this issue.
This won't work because if NInject can't resolve a type it'll throw an exception, so it'll never check the base class.
Also, If that wasn't the case(which you can code a proper working example of what was trying to be accomplished), doing it this way, none of the hubs would have access to anything registered in the ninject kernel you pass in.
Really what would be required is to not to inherit from the DefaultDependencyInjector, but instead to inherit from the interface and build it out from scratch...which you actually wouldn't have to do if the default could return back a list of all registered services.
Anyway, this hasn't been updated in years and is probably long forgotten, but I figured maybe it'd make sense to raise this issue.
It's also an issue because the documentation uses the same flawed code http://www.asp.net/signalr/overview/advanced/dependency-injection
The text was updated successfully, but these errors were encountered: