/// <summary> /// Monitoring timer tick event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void MinerStatusInsertTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { // Call miner RPC and post results to API var accountId = (Guid)Application.Current.Properties["AccountID"]; var workerName = Application.Current.Properties["WorkerName"].ToString(); MiningSession.GetMinerStatsAsync(accountId, workerName); }
/// <summary> /// Monitoring timer tick event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void MinerStatusInsertTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { // Call miner RPC and post results to API MiningSession.GetMinerStatsAsync(); }