public HttpListener() { _state = State.Stopped; _internalLock = new object(); _defaultServiceNames = new ServiceNameStore(); _timeoutManager = new HttpListenerTimeoutManager(this); _prefixes = new HttpListenerPrefixCollection(this); // default: no CBT checks on any platform (appcompat reasons); applies also to PolicyEnforcement // config element _extendedProtectionPolicy = new ExtendedProtectionPolicy(PolicyEnforcement.Never); }
public HttpListener() { if (NetEventSource.IsEnabled) NetEventSource.Enter(this); _state = State.Stopped; _internalLock = new object(); _defaultServiceNames = new ServiceNameStore(); _timeoutManager = new HttpListenerTimeoutManager(this); // default: no CBT checks on any platform (appcompat reasons); applies also to PolicyEnforcement // config element _extendedProtectionPolicy = new ExtendedProtectionPolicy(PolicyEnforcement.Never); if (NetEventSource.IsEnabled) NetEventSource.Exit(this); }
public HttpListener() { if (Logging.On) { Logging.Enter(Logging.HttpListener, this, "HttpListener", ""); } if (!UnsafeNclNativeMethods.HttpApi.Supported) { throw new PlatformNotSupportedException(); } this.m_State = 0; this.m_InternalLock = new object(); this.m_DefaultServiceNames = new ServiceNameStore(); if (Version == UnsafeNclNativeMethods.HttpApi.HTTP_API_VERSION.Version20) { this.m_TimeoutManager = new HttpListenerTimeoutManager(this); } this.m_ExtendedProtectionPolicy = new System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy(PolicyEnforcement.Never); if (Logging.On) { Logging.Exit(Logging.HttpListener, this, "HttpListener", ""); } }
public HttpListener() { if(Logging.On)Logging.Enter(Logging.HttpListener, this, "HttpListener", ""); if (!UnsafeNclNativeMethods.HttpApi.Supported) { throw new PlatformNotSupportedException(); } Debug.Assert(UnsafeNclNativeMethods.HttpApi.ApiVersion == UnsafeNclNativeMethods.HttpApi.HTTP_API_VERSION.Version20, "Invalid Http api version"); m_State = State.Stopped; m_InternalLock = new object(); m_DefaultServiceNames = new ServiceNameStore(); m_TimeoutManager = new HttpListenerTimeoutManager(this); // default: no CBT checks on any platform (appcompat reasons); applies also to PolicyEnforcement // config element m_ExtendedProtectionPolicy = new ExtendedProtectionPolicy(PolicyEnforcement.Never); if (Logging.On) Logging.Exit(Logging.HttpListener, this, "HttpListener", ""); }