示例#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);
        }
        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;
 }
 public void LoadMinerConfiguration()
 {
     XgminerConfiguration = ConfigurationReaderWriter.ReadConfiguration<XgminerConfiguration>(XgminerConfigurationFileName());
 }