async Task <BenchmarkResult> IMiner.StartBenchmark(CancellationToken stop, BenchmarkPerformanceType benchmarkType) { await Task.Delay(100); var bp = new BenchmarkResult { AlgorithmTypeSpeeds = new List <(AlgorithmType type, double speed)> { (AlgorithmType.ZHash, 12) }, Success = true }; return(GetValueOrErrorSettings.GetValueOrError("StartBenchmark", bp)); } Task <object> IMiner.StartMiningTask(CancellationToken stop) { GetValueOrErrorSettings.SetError("StartMiningTask"); return(Task.FromResult(new object())); } Task IMiner.StopMiningTask() { GetValueOrErrorSettings.SetError("StopMiningTask"); return(Task.CompletedTask); } }
void IMiner.StopMining() => GetValueOrErrorSettings.SetError("StopMining");
void IMiner.InitMiningPairs(IEnumerable <MiningPair> miningPairs) => GetValueOrErrorSettings.SetError("InitMiningPairs");
void IMiner.InitMiningLocationAndUsername(string miningLocation, string username, string password) => GetValueOrErrorSettings.SetError("InitMiningLocationAndUsername");
void IInitInternals.InitInternals() => GetValueOrErrorSettings.SetError("InitInternals");