Пример #1
0
 /// <exception cref="System.IO.IOException"/>
 public virtual void Close()
 {
     bossGroup.ShutdownGracefully();
     workerGroup.ShutdownGracefully();
     if (sslFactory != null)
     {
         sslFactory.Destroy();
     }
     if (externalHttpChannel != null)
     {
         externalHttpChannel.Close();
     }
     try
     {
         infoServer.Stop();
     }
     catch (Exception e)
     {
         throw new IOException(e);
     }
 }
Пример #2
0
 public virtual void Close()
 {
     allChannels.Close().AwaitUninterruptibly();
     bossGroup.ShutdownGracefully();
     workerGroup.ShutdownGracefully();
 }