コード例 #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);
        }