PM.BLL/Hubs/ErgHub.cs
/// <summary>
/// Called to initiate an send to the hub
/// </summary>
/// <param name="performanceMonitor">The performance monitor</param>
Called to initiate an send to the hub
Called to initiate an send to the hub
public async Task BroadcastWorkoutData(IErg performanceMonitor)
        {
            if (performanceMonitor == null)
            {
                _logger.LogWarning("When requested to send statistics to hub, the performance monitor was null. Returning without sending.");
                return;
            }
            await Clients.All.BroadcastWorkoutStatistics(performanceMonitor).ConfigureAwait(false);
            return;
        }
public async Task BroadcastWorkoutData ( IErg performanceMonitor ) { if ( performanceMonitor == null ) { _logger . LogWarning ( " " ) ; return ; } await Clients . All . BroadcastWorkoutStatistics ( performanceMonitor ) . ConfigureAwait ( false ) ; return ; }
Called to initiate an send to the hub
Called to initiate an send to the hub
// Send the data
performanceMonitor
IErg
The performance monitor
The performance monitor