/// <summary> /// Stops the application. /// </summary> public static void Stop() { if (Shutdown != null) { Shutdown(); } if (_deploymentLock != null) { _deploymentLock.TerminateAsyncLocks(); _deploymentLock = null; } _bootstrapper.ShutDown(); }
public void LockAsync_ThrowsAfterTerminateAsyncLocks() { _lockFile.TerminateAsyncLocks(); Assert.Throws <InvalidOperationException>(() => _lockFile.LockAsync()); }