Ejemplo n.º 1
0
        protected AppHostBase(string serviceName, params Assembly[] assembliesWithServices)
            : this()
        {
            this.serviceManager = new ServiceManager(assembliesWithServices);

            SetConfig(new EndpointHostConfig {
                ServiceName = serviceName,
                ServiceController = serviceManager.ServiceController,
            });
        }
Ejemplo n.º 2
0
 public EndpointHostConfig(string serviceName, ServiceManager serviceManager)
     : this()
 {
     this.ServiceName = serviceName;
     this.ServiceManager = serviceManager;
 }
Ejemplo n.º 3
0
        // 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;
        }
Ejemplo n.º 4
0
        // 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);
        }