Ejemplo n.º 1
0
 protected void DoCallOpen()
 {
     if (BeforeOpen != null)
     {
         BeforeOpen(this);
     }
     DoOpen();
     if (AfterOpen != null)
     {
         AfterOpen(this);
     }
     ConnectionRegister.ChangedConnection(this);
 }
Ejemplo n.º 2
0
 protected void DoCallClose(bool setBreakFlag)
 {
     if (setBreakFlag)
     {
         m_breakStarted = true;
     }
     if (BeforeClose != null)
     {
         BeforeClose(this);
     }
     DoClose();
     if (AfterClose != null)
     {
         AfterClose(this);
     }
     if (setBreakFlag)
     {
         m_breakFlag = true;
     }
     ConnectionRegister.ChangedConnection(this);
 }