Esempio n. 1
0
        public async Task GlobalCleanupAsync()
        {
            await ChannelPool
            .ShutdownAsync()
            .ConfigureAwait(false);

            await ConnectionPool
            .ShutdownAsync()
            .ConfigureAwait(false);
        }
Esempio n. 2
0
        public async ValueTask ShutdownAsync(bool immediately)
        {
            await _serviceLock.WaitAsync().ConfigureAwait(false);

            try
            {
                await Publisher
                .StopAutoPublishAsync(immediately)
                .ConfigureAwait(false);

                await StopAllConsumers(immediately)
                .ConfigureAwait(false);

                await ChannelPool
                .ShutdownAsync()
                .ConfigureAwait(false);
            }
            finally
            { _serviceLock.Release(); }
        }
Esempio n. 3
0
 private static async Task ShutdownAsync()
 {
     await channelPool.ShutdownAsync();
 }