Example #1
0
 public void Dispose()
 {
     Tables.Dispose();
     Procedures.Dispose();
     Functions.Dispose();
     Events.Dispose();
     Triggers.Dispose();
     Views.Dispose();
 }
Example #2
0
 public void Dispose()
 {
     IsRunning = false;
     if (UIContext != null)
     {
         UIContext.FormClosed -= UIContext_FormClosed;
         UIContext.Close();
         UIContext = null;
     }
     Triggers.Dispose();
     OnDisposed();
 }
Example #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         if (disposing)
         {
             Triggers.Dispose();
             SKore.Unsubscribe(ref Connected);
             SKore.Unsubscribe(ref Disconnected);
             SKore.Unsubscribe(ref DataIncoming);
             Disconnect();
         }
         IsDisposed = true;
     }
 }
Example #4
0
        protected virtual void Dispose(bool disposing)
        {
            SKore.Unsubscribe(ref Connected);
            SKore.Unsubscribe(ref DataToClient);
            SKore.Unsubscribe(ref DataToServer);
            SKore.Unsubscribe(ref Disconnected);

            if (disposing)
            {
                Disconnect();

                Host      = null;
                Addresses = null;
                Port      = SocketSkip = 0;

                Triggers.Dispose();
            }
        }