예제 #1
0
 private void StopOrleansSilo(SiloHandle instance, bool stopGracefully)
 {
     try
     {
         instance.StopSilo(stopGracefully);
         instance.Dispose();
     }
     finally
     {
         Interlocked.Decrement(ref this.startedInstances);
     }
 }
예제 #2
0
        private async Task StopSiloAsync(SiloHandle instance, bool stopGracefully)
        {
            try
            {
                await instance.StopSiloAsync(stopGracefully);

                instance.Dispose();
            }
            finally
            {
                Interlocked.Decrement(ref this.startedInstances);
            }
        }
예제 #3
0
 private void StopOrleansSilo(SiloHandle instance, bool stopGracefully)
 {
     instance.StopSilo(stopGracefully);
     instance.Dispose();
 }
예제 #4
0
 private void StopOrleansSilo(SiloHandle instance, bool stopGracefully)
 {
     instance.StopSilo(stopGracefully);
     instance.Dispose();
 }