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