Пример #1
0
 protected void EndRequest(HttpContext context)
 {
     //if (_GetDataContext4 != null)
     //    _GetDataContext4 = null;
     //if (_GetDataContext3 != null)
     //    _GetDataContext3 = null;
     if (_GetDataContext2 != null)
     {
         _GetDataContext2.Dispose();
         _GetDataContext2 = null;
     }
     if (_GetDataContext1 != null)
     {
         _GetDataContext1.Dispose();
         _GetDataContext1 = null;
     }
     _connections.ForEach(o => o.Close());
 }
Пример #2
0
 protected void EndRequest(HttpContext context)
 {
     if (_GetDataContext4 != null)
     {
         _GetDataContext4 = null;
     }
     if (_GetDataContext3 != null)
     {
         _GetDataContext3 = null;
     }
     if (_GetDataContext2 != null)
     {
         _GetDataContext2.Dispose();
         _GetDataContext2 = null;
     }
     if (_GetDataContext1 != null)
     {
         _GetDataContext1.Dispose();
         _GetDataContext1 = null;
     }
     Common.WriteCookieValues();
 }
Пример #3
0
 protected void EndRequest(HttpContext context)
 {
     if (_GetDataContext4 != null)
         _GetDataContext4 = null;
     if (_GetDataContext3 != null)
         _GetDataContext3 = null;
     if (_GetDataContext2 != null)
     {
         _GetDataContext2.Dispose();
         _GetDataContext2 = null;
     }
     if (_GetDataContext1 != null)
     {
         _GetDataContext1.Dispose();
         _GetDataContext1 = null;
     }
     Common.WriteCookieValues();
 }