private void Dispose(bool disposing) { lock (SyncObject) { if (!_disposed) { try { Detach(); } catch { } finally { if (disposing) { _connection = null; _charset = null; _eventManager = null; _serverVersion = null; _dialect = 0; _eventsId = 0; _handle = 0; _packetSize = 0; _warningMessage = null; _transactionCount = 0; } _disposed = true; } } } }
private void Dispose(bool disposing) { lock (this) { if (!this.disposed) { try { // release any unmanaged resources this.Detach(); // release any managed resources if (disposing) { this.connection = null; this.charset = null; this.eventManager = null; this.serverVersion = null; this.dialect = 0; this.eventsId = 0; this.handle = 0; this.packetSize = 0; this.warningMessage = null; this.transactionCount = 0; } } finally { } this.disposed = true; } } }
private void Dispose(bool disposing) { lock (this) { if (!_disposed) { try { // release any unmanaged resources Detach(); } catch { } finally { // release any managed resources if (disposing) { _warningMessage = null; _charset = null; _serverVersion = null; _statusVector = null; _transactionCount = 0; _dialect = 0; _handle = 0; _packetSize = 0; } _disposed = true; } } } }
public void Dispose() { if (!_disposed) { _disposed = true; Detach(); _warningMessage = null; _charset = null; _serverVersion = null; _statusVector = null; _transactionCount = 0; _dialect = 0; _handle.Dispose(); _packetSize = 0; } }
private void Dispose(bool disposing) { lock (this) { if (!this.disposed) { try { // release any unmanaged resources this.Detach(); // release any managed resources if (disposing) { this.warningMessage = null; this.charset = null; this.serverVersion = null; this.transactionCount = 0; this.dialect = 0; this.handle = 0; this.packetSize = 0; } } finally { this.disposed = true; } } } }
private void Dispose(bool disposing) { lock (this) { if (!_disposed) { try { Detach(); } catch { } finally { if (disposing) { _warningMessage = null; _charset = null; _serverVersion = null; _statusVector = null; _transactionCount = 0; _dialect = 0; _handle = 0; _packetSize = 0; } _disposed = true; } } } }
private void Dispose(bool disposing) { lock (this) { if (!_disposed) { try { // release any unmanaged resources Detach(); // release any managed resources if (disposing) { _warningMessage = null; _charset = null; _serverVersion = null; _transactionCount = 0; _dialect = 0; _handle = 0; _packetSize = 0; } } finally { _disposed = true; } } } }