コード例 #1
0
ファイル: HttpListener.cs プロジェクト: wcy-fmt/embedio
        /// <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>();
        }
コード例 #2
0
ファイル: HttpListener.cs プロジェクト: kobeyoung81/JBServer
        /// <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);
        }
コード例 #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>();
 }
コード例 #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>();
 }