Added Log property to the HttpListenerWebSocketContext class

This commit is contained in:
sta
2015-02-12 16:54:38 +09:00
parent e989e3e18f
commit d4e844dfcd
2 changed files with 9 additions and 3 deletions

View File

@@ -52,13 +52,19 @@ namespace WebSocketSharp.Net.WebSockets
internal HttpListenerWebSocketContext (HttpListenerContext context, string protocol)
{
_context = context;
_websocket = new WebSocket (this, protocol, context.Listener.Log);
_websocket = new WebSocket (this, protocol);
}
#endregion
#region Internal Properties
internal Logger Log {
get {
return _context.Listener.Log;
}
}
internal Stream Stream {
get {
return _context.Connection.Stream;