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