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

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

                listener.Dispose();
            }
        }