Esempio n. 1
0
        public Task LatchAndDrain()
        {
            Latched = true;

            _sender.Complete();
            _serializing.Complete();
            _batchWriting.Complete();
            _batching.Complete();

            _logger.CircuitBroken(Destination);

            return(Task.CompletedTask);
        }
Esempio n. 2
0
        public void Dispose()
        {
            _deleteIncoming.Complete();
            _deleteIncomingBatching.Complete();
            _deleteOutgoing.Complete();
            _deleteOutgoingBatching.Complete();
            _logErrorReport.Complete();
            _logErrorReportBatching.Complete();
            _scheduleIncoming.Complete();
            _scheduleIncomingBatching.Complete();

            _deleteIncomingBatching.Dispose();
            _deleteOutgoingBatching.Dispose();
            _logErrorReportBatching.Dispose();
            _scheduleIncomingBatching.Dispose();
        }
Esempio n. 3
0
        public async Task LatchAndDrain()
        {
            Latched = true;

            _sender.Complete();
            _serializing.Complete();
            _batchWriting.Complete();
            _batching.Complete();


            _logger.CircuitBroken(Destination);


            await _sender.Completion;
            await _serializing.Completion;
            await _batchWriting.Completion;
            await _batching.Completion;
        }