Example #1
0
        private async Task RejectNotification(NotificationDto notification, NotificationAcceptRejectDto acceptRejectDetails = null)
        {
            logger.LogWarning($"Rejecting notification {notification.NotificationId}");
            var response = await fomaSdk.SendData <NotificationAcceptRejectDto>(notification.Links[LinkRels.Accept].Href);

            logger.LogInformation($"Accepting notification {notification.NotificationId} resulted in {response.StatusCode}.");
        }
Example #2
0
 private async Task RejectNotification(NotificationDto notification, NotificationAcceptRejectDto acceptRejectDetails = null)
 {
     logger.LogWarning($"Rejecting notification {notification.NotificationId}");
     await fomaSdk.SendData <NotificationAcceptRejectDto>(notification.Links[LinkRels.Accept].Href);
 }