Replaced the HttpListenerWebSocketContext (HttpListenerContext, string, Logger) constructor with the HttpListenerWebSocketContext (HttpListenerContext, string) constructor

This commit is contained in:
sta 2015-02-09 17:41:47 +09:00
parent 4bcd400635
commit 01770d043d
2 changed files with 3 additions and 4 deletions

View File

@ -199,7 +199,7 @@ namespace WebSocketSharp.Net
throw new ArgumentException ("Contains an invalid character.", "protocol");
}
return new HttpListenerWebSocketContext (this, protocol, _listener.Log);
return new HttpListenerWebSocketContext (this, protocol);
}
#endregion

View File

@ -49,11 +49,10 @@ namespace WebSocketSharp.Net.WebSockets
#region Internal Constructors
internal HttpListenerWebSocketContext (
HttpListenerContext context, string protocol, Logger logger)
internal HttpListenerWebSocketContext (HttpListenerContext context, string protocol)
{
_context = context;
_websocket = new WebSocket (this, protocol, logger);
_websocket = new WebSocket (this, protocol, context.Listener.Log);
}
#endregion