public void Accept( OwinWebSocketParameters parameters, Func<OwinWebSocket, Task> callback) { var accept = AcceptDelegate; if (accept == null) { throw new NotSupportedException(OwinConstants.WebSocket.Accept); } accept.Invoke( parameters.Dictionary, webSocket => callback(new OwinWebSocket(webSocket))); }
public void Accept( OwinWebSocketParameters parameters, Func <OwinWebSocket, Task> callback) { var accept = AcceptDelegate; if (accept == null) { throw new NotSupportedException(OwinConstants.WebSocket.Accept); } accept.Invoke( parameters.Dictionary, webSocket => callback(new OwinWebSocket(webSocket))); }
public bool Equals(OwinWebSocketParameters other) { return(Equals(_dictionary, other._dictionary)); }
public void Accept( Func <OwinWebSocket, Task> callback) { Accept(OwinWebSocketParameters.Create(), callback); }
public void Accept( string subProtocol, Func <OwinWebSocket, Task> callback) { Accept(OwinWebSocketParameters.Create(subProtocol), callback); }