YieldScope() 정적인 개인적인 메소드

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
리턴 ILifetimeScope
예제 #1
0
        public void Dispose()
        {
            var scope = PerWebRequestLifestyleModule.YieldScope();

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