Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HttpListener" /> class.
        /// </summary>
        /// <param name="certificate">The certificate.</param>
        public HttpListener(X509Certificate certificate = null)
        {
            Certificate = certificate;

            _prefixes    = new HttpListenerPrefixCollection(this);
            _connections = new ConcurrentDictionary <HttpConnection, object>();
            _ctxQueue    = new ConcurrentDictionary <Guid, HttpListenerContext>();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HttpListener"/> class.
        /// </summary>
        public HttpListener()
        {
            _prefixes    = new HttpListenerPrefixCollection(this);
            _connections = Hashtable.Synchronized(new Hashtable());
            _ctxQueue    = new ConcurrentDictionary <Guid, HttpListenerContext>();
#if AUTHENTICATION
            _authSchemes = AuthenticationSchemes.Anonymous;
#endif
            //defaultServiceNames = new ServiceNameStore();
            //_extendedProtectionPolicy = new ExtendedProtectionPolicy(PolicyEnforcement.Never);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpListener"/> class.
 /// </summary>
 public HttpListener()
 {
     Prefixes     = new HttpListenerPrefixCollection(this);
     _connections = Hashtable.Synchronized(new Hashtable());
     _ctxQueue    = new ConcurrentDictionary <Guid, HttpListenerContext>();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpListener"/> class.
 /// </summary>
 public HttpListener()
 {
     _prefixes    = new HttpListenerPrefixCollection(this);
     _connections = new ConcurrentDictionary <HttpConnection, object>();
     _ctxQueue    = new ConcurrentDictionary <Guid, HttpListenerContext>();
 }