Exemple #1
0
        private async Task StopSiloAsync(SiloHandle instance, bool stopGracefully)
        {
            try
            {
                await instance.StopSiloAsync(stopGracefully);

                instance.Dispose();
            }
            finally
            {
                Interlocked.Decrement(ref this.startedInstances);
            }
        }
Exemple #2
0
        private async Task StopSiloAsync(SiloHandle instance, bool stopGracefully)
        {
            try
            {
                await instance.StopSiloAsync(stopGracefully).ConfigureAwait(false);
            }
            finally
            {
                await DisposeAsync(instance).ConfigureAwait(false);

                Interlocked.Decrement(ref this.startedInstances);
            }
        }