If I define a binding in ninject with ReqeustScope(), and then call Kernel.Get<T> on that type outside of a request what will the scope of the resolved object be?
If I define a binding in ninject with ReqeustScope() , and then call Kernel.Get<T>
Share
If we study the StandardScopeCallbacks we can see that the callback for the request scope is the current HTTP context. The callback for a transient object is null. If you resolve a service outside of a request the current HTTP context is null. Thus, the scope is implicit transient as apparent of the following test.