public void Dispose() { GC.SuppressFinalize(this); if (Pipes != null) { Pipes.DeletePipes(); } if (WebSocket != null) { WebSocket.Close(); WebSocket = null; } }
public void Dispose() { GC.SuppressFinalize(this); if (Pipes != null) { Pipes.DeletePipes(); } if (WebSockets.Count > 0) { foreach (var webSocket in WebSockets) { webSocket.Close(); } } }
public void Dispose() { GC.SuppressFinalize(this); if (Pipes != null) { Pipes.DeletePipes(); } foreach (var client in Clients.Values) { foreach (var webSocket in client.WebSockets) { webSocket.Close(); } if (client.AudioWebSocket != null) { client.AudioWebSocket.Close(); } } }