private void tmrPingNiceHash_Tick(object sender, EventArgs e) { IService service = _engine.Services.FirstOrDefault(s => s.ServiceName == "NiceHash"); NiceHashService niceHash = service as NiceHashService; niceHash?.CheckPingTimes(); }
private string DetectNiceHashStratum(PriceEntryBase entry) { if (entry.ServiceEntry.ServiceName != "NiceHash" && entry.ServiceEntry.ServiceName != "WestHash") { return(string.Empty); } NiceHashService niceHash = entry.ServiceEntry as NiceHashService; if (niceHash == null || niceHash.DetectStratum == false) { return(string.Empty); } return("-o stratum+tcp://" + niceHash.GetBestStratum(entry.AlgoName) + " "); }