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

            PositionError?.Invoke(this, e);
        }
Example #3
0
        async void OnPositionError(PositionErrorEventArgs e)
        {
            await StopListeningAsync();

            PositionError?.Invoke(this, e);
        }
 public void RaiseOnWatchPositionError(PositionError err) => OnWatchPositionError?.Invoke(err);
Example #5
0
 private void OnPositionError(object sender, PositionError e)
 {
     Console.WriteLine($"{e.Code.ToString()}: {e.Message}");
     StateHasChanged();
 }
Example #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);
 }
Example #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);
 }
Example #10
0
 protected virtual void OnPositionError(PositionErrorEventArgs e)
 => PositionError?.Invoke(this, e);