public WebSocketConnectedEventArgs(HttpRequest httpRequest, IWebSocketClientSession webSocketClientSession) { if (httpRequest == null) throw new ArgumentNullException(nameof(httpRequest)); if (webSocketClientSession == null) throw new ArgumentNullException(nameof(webSocketClientSession)); HttpRequest = httpRequest; WebSocketClientSession = webSocketClientSession; }
public WebSocketMessageReceivedEventArgs(WebSocketMessage message, IWebSocketClientSession webSocketClientSession) { if (message == null) throw new ArgumentNullException(nameof(message)); if (webSocketClientSession == null) throw new ArgumentNullException(nameof(webSocketClientSession)); Message = message; WebSocketClientSession = webSocketClientSession; }
public WebSocketMessageReceivedEventArgs(WebSocketMessage message, IWebSocketClientSession webSocketClientSession) { if (message == null) { throw new ArgumentNullException(nameof(message)); } if (webSocketClientSession == null) { throw new ArgumentNullException(nameof(webSocketClientSession)); } Message = message; WebSocketClientSession = webSocketClientSession; }
public WebSocketConnectedEventArgs(HttpRequest httpRequest, IWebSocketClientSession webSocketClientSession) { if (httpRequest == null) { throw new ArgumentNullException(nameof(httpRequest)); } if (webSocketClientSession == null) { throw new ArgumentNullException(nameof(webSocketClientSession)); } HttpRequest = httpRequest; WebSocketClientSession = webSocketClientSession; }
private void AttachWebSocket(IWebSocketClientSession webSocketClientSession) { webSocketClientSession.MessageReceived += DispatchWebSocketMessage; webSocketClientSession.Closed += (s, e) => webSocketClientSession.MessageReceived -= DispatchWebSocketMessage; }
private void AttachWebSocket(IWebSocketClientSession webSocketClientSession) { webSocketClientSession.MessageReceived += DispatchWebSocketMessage; webSocketClientSession.Closed += (s, e) => webSocketClientSession.MessageReceived -= DispatchWebSocketMessage; }