Example #1
0
 private static void PrintPushOutcome(string pnsType, NotificationDetails details, NotificationOutcomeCollection collection)
 {
     if (collection != null)
     {
         Console.WriteLine($"{pnsType} outcome: " + string.Join(",", collection.Select(kv => $"{kv.Key}:{kv.Value}")));
     }
     else
     {
         Console.WriteLine($"{pnsType} no outcomes.");
     }
     Console.WriteLine($"{pnsType} error details URL: {details.PnsErrorDetailsUri}");
 }
Example #2
0
 private void PrintPushOutcome(string pnsType, NotificationDetails details, NotificationOutcomeCollection collection)
 {
     if (collection != null)
     {
         _logger.LogInformation($"{pnsType} outcome: " + string.Join(",", collection.Select(kv => $"{kv.Key}:{kv.Value}")));
     }
     else
     {
         _logger.LogInformation($"{pnsType} no outcomes.");
     }
     _logger.LogInformation($"{pnsType} error details URL: {details.PnsErrorDetailsUri}");
 }