Example #1
0
        private static void AttachPrinceFilter(HttpApplication httpApplication)
        {
            var path = GetPrincePath(httpApplication);
            var prince = new Prince(path);
            prince.SetBaseURL(httpApplication.Request.Url.AbsoluteUri);
            prince.SetLog("prince.log");
            prince.SetInsecure(true);

            httpApplication.Response.Filter = new PrinceFilter(prince, httpApplication.Response.Filter);
        }
Example #2
0
        private static void AttachPrinceFilter(HttpApplication httpApplication)
        {
            var path   = GetPrincePath(httpApplication);
            var prince = new Prince(path);

            prince.SetBaseURL(httpApplication.Request.Url.AbsoluteUri);
            prince.SetLog("prince.log");
            prince.SetInsecure(true);

            httpApplication.Response.Filter = new PrinceFilter(prince, httpApplication.Response.Filter);
        }