public NDistServiceHost(NDistConfig config, ServiceEntry serviceConfig) { _config = config; ServiceEntry = serviceConfig; RootPath = Path.Combine(_config.GetSetting("DefaultServicePath").Value, serviceConfig.Name); }
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); }