private void OnNotificationReceived(QueueTypes.Queues.Downlinks.Downlink packet) { _logger.Information("Received packet {@Packet}", packet); try { _mediator.Publish(new Notification { // TODO: Handle downlink here }); } catch (Exception e) { _logger.Error("Failed to handle packet {@Packet} with exception {@Exception}", packet, e); } _logger.Information("Finished handling packet {@Packet}", packet); }
public void OnHandleNotification(QueueTypes.Queues.Downlinks.Downlink packet) { _logger.Information("Received packet {@Packet}", packet); try { _mediator.Publish(new Notification { Id = 1, Payload = packet.Packet }); } catch (Exception e) { _logger.Error("Failed to handle packet {@Packet} with exception {@Exception}", packet, e); } _logger.Information("Finished handling packet {@Packet}", packet); }