public void Dispose()
 {
     circuitBreaker?.Dispose();
     semaphore?.Dispose();
     messageProcessing?.Dispose();
     connection?.Dispose();
 }
示例#2
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }
            circuitBreaker?.Dispose();
            messagePumpCancellationTokenSource?.Dispose();
            messageProcessingCancellationTokenSource?.Dispose();

            connection?.Dispose();
            disposed = true;
        }