예제 #1
0
        /// <summary>
        /// Stops the application.
        /// </summary>
        public static void Stop()
        {
            if (Shutdown != null)
            {
                Shutdown();
            }

            if (_deploymentLock != null)
            {
                _deploymentLock.TerminateAsyncLocks();
                _deploymentLock = null;
            }

            _bootstrapper.ShutDown();
        }
예제 #2
0
 public void LockAsync_ThrowsAfterTerminateAsyncLocks()
 {
     _lockFile.TerminateAsyncLocks();
     Assert.Throws <InvalidOperationException>(() => _lockFile.LockAsync());
 }