コード例 #1
0
 private void TransmitPing(PingDiagnostic ping)
 {
     //TODO: The order of execution might influence how soon everything is processed, however this might be a bit overdone to make this a set of parallel threads
     try
     {
         if (configuration.TestFirebase)
         {
             firebaseChannel.WritePing(ping);
         }
         if (configuration.TestMulticast)
         {
             multicastClient.SendMessage($"MCPING|{ping.SessionIdentifier}|{ping.PingIdentifier}");
         }
     }catch (Exception e)
     {
         logger.LogWarning($"Failed to transmit ping: {e.Message}");
     }
 }
コード例 #2
0
 public void StartTest()
 {
     logger.LogInformation("Start writing");
     multicastClient.SendMessage("This is test");
 }