Example #1
0
 public WebServer(
     IWebSite[] webSites,
     IWebServerRequestFactory webServerRequestFactory,
     IWebServerResponseFactory webServerResponseFactory,
     IWebServerLoggingProvider logger)
 {
     this.webSites = webSites.OrderByDescending(w => w.Priority).ToArray();
     this.webServerRequestFactory  = webServerRequestFactory;
     this.webServerResponseFactory = webServerResponseFactory;
     this.logger  = logger;
     this.isAdmin = new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
 }
Example #2
0
 public WebServerRequestFactory(IUserProvider userProvider, IWebServerLoggingProvider logger)
 {
     this.userProvider = userProvider;
 }