示例#1
0
 public static void OnEndRequest(object sender, EventArgs e)
 {
     if (LifetimeScopeProvider != null)
     {
         LifetimeScopeProvider.EndLifetimeScope();
     }
 }
示例#2
0
        public static void OnEndRequest(object sender, EventArgs e)
        {
            if (LifetimeScopeProvider != null)
            {
                LifetimeScopeProvider.EndLifetimeScope();
            }

            // Dispose all other disposable object in HttpContext.Items
            PurgeContextItems(sender as HttpApplication);
        }