protected void OnLocationError(object _, PositionError error) { _logger.LogError(error.Message); StateHasChanged(); }
/// <inheritdoc/> private async void OnListenerPositionError(object sender, PositionErrorEventArgs e) { await StopListeningAsync(); PositionError?.Invoke(this, e); }
async void OnPositionError(PositionErrorEventArgs e) { await StopListeningAsync(); PositionError?.Invoke(this, e); }
public void RaiseOnWatchPositionError(PositionError err) => OnWatchPositionError?.Invoke(err);
private void OnPositionError(object sender, PositionError e) { Console.WriteLine($"{e.Code.ToString()}: {e.Message}"); StateHasChanged(); }
private void OnPositionError(PositionErrorEventArgs e) => PositionError?.Invoke(this, e);
private void OnError(PositionError error) { _output.Text += string.Format("{0}: {1}\r\n", error.Code, error.Message); }
static Task OnListenerPositionError(Exception error) => StopTracking().ContinueWith(x => PositionError.Raise(error));
/// <summary> /// A protected method that is called when <see cref="PositionError"/> should fire /// </summary> /// <param name="eventArgs">A <see cref="PositionErrorEventArgs"/> object representing the event arguments</param> protected void OnPositionError(PositionErrorEventArgs eventArgs) { PositionError?.Invoke(this, eventArgs); }
protected virtual void OnPositionError(PositionErrorEventArgs e) => PositionError?.Invoke(this, e);