public CloudPrintInfoServer(string baseurl, CloudPrintProxy printproxy)
 {
     HttpSelfHostConfiguration cfg = new HttpSelfHostConfiguration(baseurl);
     cfg.Routes.MapHttpRoute(
         "default",
         "{controller}/{id}",
         new { controller = "Home", id = RouteParameter.Optional }
     );
     cfg.Filters.Add(new Filters.HandleErrorFilter());
     cfg.Filters.Add(new Filters.CookiesFilter());
     cfg.Filters.Add(new Filters.WindowsAuthorizationFilter());
     cfg.Filters.Add(new Filters.CloudPrintProxyFilter { PrintProxy = printproxy });
     Server = new HttpSelfHostServer(cfg);
     AuthServiceRegistration = new AuthServiceRegistration(printproxy);
 }
        public CloudPrintInfoServer(string baseurl, CloudPrintProxy printproxy)
        {
            HttpSelfHostConfiguration cfg = new HttpSelfHostConfiguration(baseurl);

            cfg.Routes.MapHttpRoute(
                "default",
                "{controller}/{id}",
                new { controller = "Home", id = RouteParameter.Optional }
                );
            cfg.Filters.Add(new Filters.HandleErrorFilter());
            cfg.Filters.Add(new Filters.CookiesFilter());
            cfg.Filters.Add(new Filters.WindowsAuthorizationFilter());
            cfg.Filters.Add(new Filters.CloudPrintProxyFilter {
                PrintProxy = printproxy
            });
            Server = new HttpSelfHostServer(cfg);
            AuthServiceRegistration = new AuthServiceRegistration(printproxy);
        }