private static void Uut_MessageReceived(object sender, EventArgs e) { NmeaDevice device = (NmeaDevice)sender; NmeaMessage message = ((NmeaMessageReceivedEventArgs)e).Message; Console.WriteLine(message.ToString()); list.Add(message); }
private Task DispatchMessage(NmeaMessage message) { _logger.LogInformation(message.ToString()); return(Task.CompletedTask); }