protected void OnLocationError(object _, PositionError error)
 {
     _logger.LogError(error.Message);
     StateHasChanged();
 }
Beispiel #2
0
        /// <inheritdoc/>
        private async void OnListenerPositionError(object sender, PositionErrorEventArgs e)
        {
            await StopListeningAsync();

            PositionError?.Invoke(this, e);
        }
Beispiel #3
0
        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();
 }
Beispiel #6
0
 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);
 }
Beispiel #8
0
 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);
 }
Beispiel #10
0
 protected virtual void OnPositionError(PositionErrorEventArgs e)
 => PositionError?.Invoke(this, e);