예제 #1
0
        public void EndLifetimeScope()
        {
            if (_requestLifetimeScopeProvider != null)
            {
                _requestLifetimeScopeProvider.EndLifetimeScope();

                if (_originalResolver != null)
                {
                    DependencyResolver.SetResolver(_originalResolver);
                }
            }
        }
예제 #2
0
 void AutofacMvcApplication_EndRequest(object sender, EventArgs e)
 {
     _lifetimeScopeProvider.EndLifetimeScope();
 }