protected AppHostBase(string serviceName, params Assembly[] assembliesWithServices) : this() { this.serviceManager = new ServiceManager(assembliesWithServices); SetConfig(new EndpointHostConfig { ServiceName = serviceName, ServiceController = serviceManager.ServiceController, }); }
public EndpointHostConfig(string serviceName, ServiceManager serviceManager) : this() { this.ServiceName = serviceName; this.ServiceManager = serviceManager; }
// Pre user config public static void ConfigureHost(IAppHost appHost, string serviceName, ServiceManager serviceManager) { AppHost = appHost; EndpointHostConfig.Instance.ServiceName = serviceName; EndpointHostConfig.Instance.ServiceManager = serviceManager; var config = EndpointHostConfig.Instance; Config = config; // avoid cross-dependency on Config setter ContentCacheManager.ContentTypeFilter = appHost.ContentTypeFilters; }
// Pre user config public static void ConfigureHost(IAppHost appHost, string serviceName, ServiceManager serviceManager) { AppHost = appHost; EndpointHostConfig.Instance.ServiceName = serviceName; EndpointHostConfig.Instance.ServiceManager = serviceManager; var config = EndpointHostConfig.Instance; Config = config; // avoid cross-dependency on Config setter VirtualPathProvider = new FileSystemVirtualPathProvider(AppHost, Config.WebHostPhysicalPath); }