Пример #1
0
        public SettingsForm(ApplicationConfiguration applicationConfiguration, XgminerConfiguration minerConfiguration)
        {
            InitializeComponent();

            this.minerConfiguration = minerConfiguration;
            this.applicationConfiguration = applicationConfiguration;
        }
Пример #2
0
 public EngineConfiguration()
 {
     DeviceConfigurations = new List<DeviceConfiguration>();
     CoinConfigurations = new List<CoinConfiguration>();
     XgminerConfiguration = new XgminerConfiguration();
     StrategyConfiguration = new StrategyConfiguration();
 }
Пример #3
0
 public EngineConfiguration()
 {
     DeviceConfigurations  = new List <DeviceConfiguration>();
     CoinConfigurations    = new List <CoinConfiguration>();
     XgminerConfiguration  = new XgminerConfiguration();
     StrategyConfiguration = new StrategyConfiguration();
 }
Пример #4
0
        public MinerSettingsForm(XgminerConfiguration minerConfiguration, ApplicationConfiguration applicationConfiguration)
        {
            InitializeComponent();
            this.minerConfiguration = minerConfiguration;
            this.workingMinerConfiguration = ObjectCopier.CloneObject<XgminerConfiguration, XgminerConfiguration>(minerConfiguration);

            this.applicationConfiguration = applicationConfiguration;
            this.workingApplicationConfiguration = ObjectCopier.CloneObject<ApplicationConfiguration, ApplicationConfiguration>(applicationConfiguration);
        }
Пример #5
0
        public void GetDevices_ReturnsDevices()
        {
            XgminerConfiguration minerConfiguration = new XgminerConfiguration();
            minerConfiguration.StratumProxy = true;

            DevicesService service = new DevicesService(minerConfiguration);
            List<Device> devices = service.GetDevices(executablePath);

            Assert.IsTrue(devices.Count >= 1);
        }
Пример #6
0
 public DevicesService()
 {
     this.xgminerConfiguration = new XgminerConfiguration();
     this.xgminerConfiguration.LoadMinerConfiguration();
 }
Пример #7
0
 public DevicesService(XgminerConfiguration minerConfiguration)
 {
     this.xgminerConfiguration = minerConfiguration;
 }
Пример #8
0
 public void LoadMinerConfiguration()
 {
     XgminerConfiguration = ConfigurationReaderWriter.ReadConfiguration<XgminerConfiguration>(XgminerConfigurationFileName());
 }