public void Dispose() { Tables.Dispose(); Procedures.Dispose(); Functions.Dispose(); Events.Dispose(); Triggers.Dispose(); Views.Dispose(); }
public void Dispose() { IsRunning = false; if (UIContext != null) { UIContext.FormClosed -= UIContext_FormClosed; UIContext.Close(); UIContext = null; } Triggers.Dispose(); OnDisposed(); }
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; } }
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(); } }