/// <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>(); }
/// <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); }
/// <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>(); }
/// <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>(); }