Пример #1
0
 public void Stop()
 {
     if (httpServer != null)
     {
         httpServer.Stop();
         httpServer.Join(1000);
     }
     // webSocketServer does not support closing/stopping
     webSocketServer = null;
 }
Пример #2
0
        public void Stop()
        {
            Try.Catch(() => { thrCertificateMaintainer?.Abort(); });

            if (httpServer != null)
            {
                httpServer.Stop();
                httpServer.Join(1000);
            }
            // webSocketServer does not support closing/stopping
            webSocketServer = null;
        }