Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }