Exemplo n.º 1
0
        public HttpRedirect(RedirectSettings settings)
        {
            _urlProcessor             = settings.UrlProcessor;
            _cookieProcessor          = settings.CookieProcessor ?? new CookieProcessor();
            _responseContentProcessor = settings.ResponseContentProcessor;

            _listener = new HttpListener();
            foreach (var url in settings.Urls)
            {
                _listener.Prefixes.Add(url);
            }
        }
Exemplo n.º 2
0
        public HttpRedirect(RedirectSettings settings)
        {
            _urlProcessor = settings.UrlProcessor;
            _cookieProcessor = settings.CookieProcessor ?? new CookieProcessor();
            _responseContentProcessor = settings.ResponseContentProcessor;

            _listener = new HttpListener();
            foreach (var url in settings.Urls)
            {
                _listener.Prefixes.Add(url);
            }
        }