Added Log property to the HttpListenerWebSocketContext class
This commit is contained in:
parent
e989e3e18f
commit
d4e844dfcd
@ -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;
|
||||
|
@ -116,13 +116,13 @@ namespace WebSocketSharp
|
||||
#region Internal Constructors
|
||||
|
||||
// As server
|
||||
internal WebSocket (HttpListenerWebSocketContext context, string protocol, Logger logger)
|
||||
internal WebSocket (HttpListenerWebSocketContext context, string protocol)
|
||||
{
|
||||
_context = context;
|
||||
_protocol = protocol;
|
||||
_logger = logger;
|
||||
|
||||
_closeContext = context.Close;
|
||||
_logger = context.Log;
|
||||
_secure = context.IsSecureConnection;
|
||||
_stream = context.Stream;
|
||||
_waitTime = TimeSpan.FromSeconds (1);
|
||||
|
Loading…
Reference in New Issue
Block a user