Пример #1
0
        void FireOnAppEnd()
        {
            if (app_type == null)
            {
                return;                 // we didn't even get an application
            }
            HttpApplication app = (HttpApplication)Activator.CreateInstance(app_type, true);

            FireEvent("Application_End", app, new object [] { new object(), EventArgs.Empty });
            app.DisposeInternal();
            app_type = null;
        }
Пример #2
0
 private void RecycleNormalApplicationInstance(HttpApplication app)
 {
     if (_numFreeAppInstances < _maxFreeAppInstances)
     {
         lock (_freeList) {
             _freeList.Push(app);
             _numFreeAppInstances++;
         }
     }
     else
     {
         app.DisposeInternal();
     }
 }