public HttpListener() { prefixes = new HttpListenerPrefixCollection(this); registry = new Dictionary <HttpListenerContext, HttpListenerContext> (); connections = new Dictionary <HttpConnection, HttpConnection> (); ctx_queue = new List <HttpListenerContext> (); wait_queue = new List <ListenerAsyncResult> (); auth_schemes = AuthenticationSchemes.Anonymous; }
/// <summary> /// Initializes a new instance of the <see cref="HttpListener"/> class. /// </summary> public HttpListener() { _authSchemes = AuthenticationSchemes.Anonymous; _connections = new Dictionary <HttpConnection, HttpConnection> (); _contextQueue = new List <HttpListenerContext> (); _prefixes = new HttpListenerPrefixCollection(this); _registry = new Dictionary <HttpListenerContext, HttpListenerContext> (); _waitQueue = new List <ListenerAsyncResult> (); }
public HttpListener() { this._connectionsSync = ((ICollection)this._connections).SyncRoot; this._ctxQueue = new List <HttpListenerContext>(); this._ctxQueueSync = ((ICollection)this._ctxQueue).SyncRoot; this._ctxRegistry = new Dictionary <HttpListenerContext, HttpListenerContext>(); this._ctxRegistrySync = ((ICollection)this._ctxRegistry).SyncRoot; this._logger = new Logger(); this._prefixes = new HttpListenerPrefixCollection(this); this._waitQueue = new List <HttpListenerAsyncResult>(); this._waitQueueSync = ((ICollection)this._waitQueue).SyncRoot; }
/// <summary> /// Initializes a new instance of the <see cref="HttpListener"/> class. /// </summary> public HttpListener() { _authSchemes = AuthenticationSchemes.Anonymous; _contextQueue = new Queue <HttpListenerContext> (); _contextRegistry = new LinkedList <HttpListenerContext> (); _contextRegistrySync = ((ICollection)_contextRegistry).SyncRoot; _logger = new Logger(); _prefixes = new HttpListenerPrefixCollection(this); _waitQueue = new Queue <HttpListenerAsyncResult> (); }
public HttpListener() { this._authSchemes = WebSocketSharp.Net.AuthenticationSchemes.Anonymous; this._connections = new Dictionary <HttpConnection, HttpConnection>(); this._connectionsSync = ((ICollection)this._connections).SyncRoot; this._ctxQueue = new List <HttpListenerContext>(); this._ctxQueueSync = ((ICollection)this._ctxQueue).SyncRoot; this._ctxRegistry = new Dictionary <HttpListenerContext, HttpListenerContext>(); this._ctxRegistrySync = ((ICollection)this._ctxRegistry).SyncRoot; this._logger = new Logger(); this._prefixes = new HttpListenerPrefixCollection(this); this._waitQueue = new List <HttpListenerAsyncResult>(); this._waitQueueSync = ((ICollection)this._waitQueue).SyncRoot; }
public HttpListener() { _authSchemes = AuthenticationSchemes.Anonymous; _connections = new Dictionary <HttpConnection, HttpConnection>(); _connectionsSync = ((ICollection)_connections).SyncRoot; _ctxQueue = new List <HttpListenerContext>(); _ctxQueueSync = ((ICollection)_ctxQueue).SyncRoot; _ctxRegistry = new Dictionary <HttpListenerContext, HttpListenerContext>(); _ctxRegistrySync = ((ICollection)_ctxRegistry).SyncRoot; _logger = new Logger(); _prefixes = new HttpListenerPrefixCollection(this); _waitQueue = new List <HttpListenerAsyncResult>(); _waitQueueSync = ((ICollection)_waitQueue).SyncRoot; }