Пример #1
0
 public void Dispose()
 {
     _connection?.Close();
     _connection?.Dispose();
 }
Пример #2
0
 /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
 public virtual void Dispose()
 {
     _connection.Dispose();
     _connections.TryRemove(Name, out _);
 }