/// <inheritdoc /> /// <summary> /// Dispose method /// </summary> public void Dispose() { _timer.Dispose(); TimerCallback(this); _queueClient?.Dispose(); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { _queueClient?.Dispose(); _queueClient = null; GC.SuppressFinalize(this); }
/// <inheritdoc /> /// <summary> /// Dispose the current object resources /// </summary> public void Dispose() { _timer.Dispose(); _queueClient?.Dispose(); }