Пример #1
0
 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;
 }
Пример #2
0
 /// <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> ();
 }
Пример #3
0
 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;
 }
Пример #4
0
        /// <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;
 }
Пример #6
0
 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;
 }