YieldScope() static private méthode

Returns current request's scope and detaches it from the request context. Does not throw if scope or context not present. To be used for disposing of the context.
static private YieldScope ( ) : ILifetimeScope
Résultat ILifetimeScope
        public void Dispose()
        {
            var scope = PerWebRequestLifestyleModule.YieldScope();

            if (scope != null)
            {
                scope.Dispose();
            }
        }