예제 #1
0
파일: WebServer.cs 프로젝트: radtek/Thingy
 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);
 }
예제 #2
0
 public WebServerRequestFactory(IUserProvider userProvider, IWebServerLoggingProvider logger)
 {
     this.userProvider = userProvider;
 }