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); }
public WebServerRequestFactory(IUserProvider userProvider, IWebServerLoggingProvider logger) { this.userProvider = userProvider; }