Exemplo n.º 1
0
        public DecompressionHandler(DecompressionMethods decompressionMethods, StandardHttpMessageHandler innerHandler)
        {
            Debug.Assert(decompressionMethods != DecompressionMethods.None);
            Debug.Assert(innerHandler != null);

            _decompressionMethods = decompressionMethods;
            _innerHandler         = innerHandler;
        }
        public RedirectHandler(int maxAutomaticRedirections, StandardHttpMessageHandler initialInnerHandler, StandardHttpMessageHandler redirectInnerHandler)
        {
            Debug.Assert(initialInnerHandler != null);
            Debug.Assert(redirectInnerHandler != null);
            Debug.Assert(maxAutomaticRedirections > 0);

            _maxAutomaticRedirections = maxAutomaticRedirections;
            _initialInnerHandler      = initialInnerHandler;
            _redirectInnerHandler     = redirectInnerHandler;
        }