public void Stop() { if (httpServer != null) { httpServer.Stop(); httpServer.Join(1000); } // webSocketServer does not support closing/stopping webSocketServer = null; }
public void Stop() { Try.Catch(() => { thrCertificateMaintainer?.Abort(); }); if (httpServer != null) { httpServer.Stop(); httpServer.Join(1000); } // webSocketServer does not support closing/stopping webSocketServer = null; }