public SyborgHttpListenerAppHost( IWebServerConfiguration configuration, string externalUrl, int serverPortNumber, string applicationPath, IFileSystem fileSystem, IApplicationInfo applicationInfo, ITimeService timeService, IRazorViewRenderingEngine viewRenderingEngine, IFileMimeTypesMap fileMimeTypesMap, IWebServerController webServerController, IEnumerable <IWebRequestRoute> routes, IEnumerable <IWebPolicy> policies) { Contract.Requires(viewRenderingEngine != null); Contract.Requires(routes != null); Contract.Requires(policies != null); this.configuration = configuration; this.externalUrl = externalUrl; this.serverPortNumber = serverPortNumber; this.applicationPath = applicationPath; this.fileSystem = fileSystem; this.applicationInfo = applicationInfo; this.timeService = timeService; this.viewRenderingEngine = viewRenderingEngine; this.fileMimeTypesMap = fileMimeTypesMap; this.webServerController = webServerController; this.routes.AddRange(routes); this.policies.AddRange(policies); }
public TestHost( IWebServerConfiguration configuration, string externalUrl, int serverPortNumber, string applicationPath, IFileSystem fileSystem, IApplicationInfo applicationInfo, ITimeService timeService, IRazorViewRenderingEngine viewRenderingEngine, IFileMimeTypesMap fileMimeTypesMap, IWebServerController webServerController, IEnumerable <IWebRequestRoute> routes, IEnumerable <IWebPolicy> policies) : base(configuration, externalUrl, serverPortNumber, applicationPath, fileSystem, applicationInfo, timeService, viewRenderingEngine, fileMimeTypesMap, webServerController, routes, policies) { }