public void Dispose() { if (disposedFlag.Set()) { MiscHelpers.Try(httpListener.Stop); DisconnectClient(WebSocketCloseStatus.EndpointUnavailable, "The V8 runtime has been destroyed"); listener.Dispose(); } }
public void Dispose() { if (disposedFlag.Set()) { MiscHelpers.Try(tcpListener.Stop); DisconnectClient(null); queueWaitHandle.Unregister(null); queueEvent.Close(); listener.Dispose(); } }