System.Net.HttpListenerTimeoutManager.HttpListenerTimeoutManager C# (CSharp) Method

HttpListenerTimeoutManager() private method

private HttpListenerTimeoutManager ( HttpListener context ) : System.Diagnostics
context HttpListener
return System.Diagnostics
        internal HttpListenerTimeoutManager(HttpListener context)
        {
            _listener = context;

            //
            // We have to maintain local state since we allow applications to set individual timeouts. Native Http
            // API for setting timeouts expects all timeout values in every call so we have remember timeout values 
            // to fill in the blanks. Except MinSendBytesPerSecond, local state for remaining five timeouts is 
            // maintained in timeouts array.
            //
            // No initialization is required because a value of zero indicates that system defaults should be used.
            _timeouts = new int[5];
        }