/// <inheritdoc />
        /// <summary>
        /// </summary>
        public void Dispose()
        {
            Logger.LogDebug("Closing connection");

            Client?.Dispose();
            ClientHandler?.Dispose();
        }
Exemple #2
0
 protected void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         ClientHandler?.Dispose();
         ClientHandler = null;
     }
 }
 private void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         ClientHandler?.Dispose();
         ClientHandler = null;
     }
 }
 protected virtual void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             ClientHandler.Dispose();
             Client.Dispose();
         }
         disposedValue = true;
     }
 }
        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;
 }