PM.BLL/PMPollingService.cs
/// <summary>
/// Updates the workout state stored in cache
/// </summary>
/// <param name="args">The update arguments</param>
Updates the workout state stored in cache
Updates the workout state stored in cache
private void UpdateWorkoutState(CacheEntryUpdateArguments args)
        {
            string serialNumber = args.Key;
            if (!_activePolls.ContainsKey(serialNumber))
            {
                return;
            }
            if (args?.UpdatedCacheItem == null)
            {
                return;
            }
            args.UpdatedCacheItem.Value = GetWorkoutState(serialNumber);
        }
private void UpdateWorkoutState ( CacheEntryUpdateArguments args ) { string serialNumber = args . Key ; if ( ! _activePolls . ContainsKey ( serialNumber ) ) { return ; } if ( args ? . UpdatedCacheItem == null ) { return ; } args . UpdatedCacheItem . Value = GetWorkoutState ( serialNumber ) ; }
Updates the workout state stored in cache
Updates the workout state stored in cache
// This device is no longer connected, so do not refresh the state
args
CacheEntryUpdateArguments
The update arguments
The update arguments