Пример #1
0
 public virtual void Shutdown()
 {
     if (ch != null)
     {
         ch.Close().AwaitUninterruptibly();
     }
     if (server != null)
     {
         server.ReleaseExternalResources();
     }
 }
Пример #2
0
		/// <exception cref="System.Exception"/>
		protected override void ServiceStop()
		{
			accepted.Close().AwaitUninterruptibly(10, TimeUnit.Seconds);
			if (selector != null)
			{
				ServerBootstrap bootstrap = new ServerBootstrap(selector);
				bootstrap.ReleaseExternalResources();
			}
			if (pipelineFact != null)
			{
				pipelineFact.Destroy();
			}
			if (stateDb != null)
			{
				stateDb.Close();
			}
			base.ServiceStop();
		}
Пример #3
0
 internal void Shutdown()
 {
     allChannels.Close().AwaitUninterruptibly();
     tcpServer.ReleaseExternalResources();
     udpServer.ReleaseExternalResources();
 }