Esempio n. 1
0
 public void Dispose()
 {
     if (disposedFlag.Set())
     {
         MiscHelpers.Try(httpListener.Stop);
         DisconnectClient(WebSocketCloseStatus.EndpointUnavailable, "The V8 runtime has been destroyed");
         listener.Dispose();
     }
 }
Esempio n. 2
0
        public void Dispose()
        {
            if (disposedFlag.Set())
            {
                MiscHelpers.Try(tcpListener.Stop);
                DisconnectClient(null);

                queueWaitHandle.Unregister(null);
                queueEvent.Close();

                listener.Dispose();
            }
        }