/// <summary> /// Handles the flight timer stopped event. /// </summary> /// <param name="args">The <see cref="FlightTimerEventArgs"/> instance containing the event data.</param> private void HandleFlightTimerStopped(FlightTimerEventArgs args) { this.FlightTimerStopped?.Invoke(this, args); this.logger.LogTrace($"{nameof(ContestMediator)}:{nameof(HandleFlightTimerStopped)} " + $" - Pilot:{args.PilotId}, TimingDeviceId:{args.TimingDeviceId}, Minutes:{args.PilotId}, Seconds:{args.Seconds}"); }
/// <summary> /// Handles the FlightTimerStopped event / message. /// </summary> /// <param name="args">The <see cref="FlightTimerEventArgs"/> instance containing the event data.</param> /// <returns></returns> public async Task FlightTimerStopped(FlightTimerEventArgs args) { try { await Clients.AllExcept(GetCallerId()).InvokeAsync("FlightTimerStopped", args); } catch (Exception ex) { Debug.WriteLine($"SignalR Error: {ex.Message}"); } }
/// <summary> /// Handles the FlightTimerStarted event / message. /// </summary> /// <param name="args">The <see cref="FlightTimerEventArgs"/> instance containing the event data.</param> /// <returns></returns> public async Task FlightTimerStarted(FlightTimerEventArgs args) => await Clients.AllExcept(GetCallerId()).InvokeAsync("FlightTimerStarted", args);