コード例 #1
0
        protected AppHostBase(string serviceName, params Assembly[] assembliesWithServices)
            : this()
        {
            this.serviceManager = new ServiceManager(assembliesWithServices);

            SetConfig(new EndpointHostConfig {
                ServiceName = serviceName,
                ServiceController = serviceManager.ServiceController,
            });
        }
コード例 #2
0
 public EndpointHostConfig(string serviceName, ServiceManager serviceManager)
     : this()
 {
     this.ServiceName = serviceName;
     this.ServiceManager = serviceManager;
 }
コード例 #3
0
ファイル: EndpointHost.cs プロジェクト: sbeparey/ServiceStack
        // 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;
        }
コード例 #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);
        }