public async Task AddAsync(Notification item, CancellationToken cancellationToken = default(CancellationToken)) { NotificationOutcome notificationOutcome = await _notificationHubclientService.SendNotificationAsync(item, _tagExpression); if (_enableTestSend) { string debugLog = $"NotificationHubs Test Send\r\n" + $" TrackingId = {notificationOutcome.TrackingId}\r\n" + $" State = {notificationOutcome.State}\r\n" + $" Results (Success = {notificationOutcome.Success}, Failure = {notificationOutcome.Failure})\r\n"; if (notificationOutcome.Results != null) { foreach (RegistrationResult result in notificationOutcome.Results) { debugLog += $" ApplicationPlatform:{result.ApplicationPlatform}, RegistrationId:{result.RegistrationId}, Outcome:{result.Outcome}\r\n"; } } _traceWriter.Info(debugLog); } }
public async Task AddAsync(Notification item, CancellationToken cancellationToken = default(CancellationToken)) { await _notificationHubclientService.SendNotificationAsync(item, _tagExpression); }