Exemplo n.º 1
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        public void Dispose()
        {
            Logger.LogDebug("Closing connection");

            Client?.Dispose();
            ClientHandler?.Dispose();
        }
Exemplo n.º 2
0
 protected void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         ClientHandler?.Dispose();
         ClientHandler = null;
     }
 }
 private void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         ClientHandler?.Dispose();
         ClientHandler = null;
     }
 }
Exemplo n.º 4
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             ClientHandler.Dispose();
             Client.Dispose();
         }
         disposedValue = true;
     }
 }
Exemplo n.º 5
0
        protected virtual void Dispose(bool itIsSafeToAlsoFreeManagedObjects)
        {
            if (_disposed)
            {
                return;
            }

            if (itIsSafeToAlsoFreeManagedObjects)
            {
                ClientHandler?.Dispose();
                ss.Dispose();
            }

            _disposed = true;
        }
 /// <summary>
 /// Disposes of the Internal Client, and Client Handler.
 /// </summary>
 public void Dispose()
 {
     Client?.Dispose();
     ClientHandler?.Dispose();
     Disposed = true;
 }