public SettingsForm(ApplicationConfiguration applicationConfiguration, XgminerConfiguration minerConfiguration) { InitializeComponent(); this.minerConfiguration = minerConfiguration; this.applicationConfiguration = applicationConfiguration; }
public EngineConfiguration() { DeviceConfigurations = new List<DeviceConfiguration>(); CoinConfigurations = new List<CoinConfiguration>(); XgminerConfiguration = new XgminerConfiguration(); StrategyConfiguration = new StrategyConfiguration(); }
public EngineConfiguration() { DeviceConfigurations = new List <DeviceConfiguration>(); CoinConfigurations = new List <CoinConfiguration>(); XgminerConfiguration = new XgminerConfiguration(); StrategyConfiguration = new StrategyConfiguration(); }
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); }
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); }
public DevicesService() { this.xgminerConfiguration = new XgminerConfiguration(); this.xgminerConfiguration.LoadMinerConfiguration(); }
public DevicesService(XgminerConfiguration minerConfiguration) { this.xgminerConfiguration = minerConfiguration; }
public void LoadMinerConfiguration() { XgminerConfiguration = ConfigurationReaderWriter.ReadConfiguration<XgminerConfiguration>(XgminerConfigurationFileName()); }