コード例 #1
0
ファイル: NDistServiceHost.cs プロジェクト: kouweizhong/ndist
 public NDistServiceHost(NDistConfig config, ServiceEntry serviceConfig)
 {
     _config      = config;
     ServiceEntry = serviceConfig;
     RootPath     = Path.Combine(_config.GetSetting("DefaultServicePath").Value, serviceConfig.Name);
 }
コード例 #2
0
        public NDistManagementServicesRunner(NDistConfig config, INDistManagementService managementService)
        {
            _config            = config;
            _managementService = managementService;

            _scsServiceApplication = ScsServiceBuilder.CreateService(new ScsTcpEndPoint(Convert.ToInt32(_config.GetSetting("ServerPort").Value)));
            _scsServiceApplication.AddService <INDistManagementService, NDistManagementService>((NDistManagementService)_managementService);
        }