Exemplo n.º 1
0
 public virtual void Shutdown()
 {
     if (ch != null)
     {
         ch.Close().AwaitUninterruptibly();
     }
     if (server != null)
     {
         server.ReleaseExternalResources();
     }
 }
Exemplo n.º 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();
		}
Exemplo n.º 3
0
 internal void Shutdown()
 {
     allChannels.Close().AwaitUninterruptibly();
     tcpServer.ReleaseExternalResources();
     udpServer.ReleaseExternalResources();
 }