Пример #1
0
 public WebService(IWebServerCore serverCore)
 {
     _serverCore = serverCore;
     _router     = new WebRouter(serverCore.Setting);
     _serverCore.SetHandler(this);
     _middlewareStack = new WebMiddlewareStack(_router.Route);
 }
Пример #2
0
 public WebServer(MhfSetting setting, IWebServer server)
 {
     _logger = LogProvider.Logger(this);
     _server = server;
     _router = new WebRouter(setting);
     _server.SetHandler(this);
     _middlewareStack = new WebMiddlewareStack(_router.Route);
 }