Exemplo n.º 1
0
 public void Save(NDistConfig config)
 {
     using (var reader = new StreamWriter(Path.Combine(Directory.GetCurrentDirectory(), "NDistConfig.xml"), false, Encoding.UTF8))
     {
         Serializer.Serialize(reader, config);
     }
 }
Exemplo n.º 2
0
 public void Save(NDistConfig config)
 {
     using (var reader = new StreamWriter(Path.Combine(Directory.GetCurrentDirectory(), "NDistConfig.xml"), false, Encoding.UTF8))
     {
         Serializer.Serialize(reader, config);
     }
 }
        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);
        }
Exemplo n.º 4
0
 public NDistServiceHost(NDistConfig config, ServiceEntry serviceConfig)
 {
     _config = config;
     ServiceEntry = serviceConfig;
     RootPath = Path.Combine(_config.GetSetting("DefaultServicePath").Value, serviceConfig.Name);
 }