Exemple #1
0
        public async Task UnSubscribeToAllNotifications(NotificationSubscriptionInput input)
        {
            await _notificationSubscriptionManager.UnsubscribeAsync(input.UserIdentifier, NotificationNames.UserDeleted);

            await _notificationSubscriptionManager.UnsubscribeAsync(input.UserIdentifier, NotificationNames.RoleAssigned);

            await _notificationSubscriptionManager.UnsubscribeAsync(input.UserIdentifier, NotificationNames.UserCreated);

            await _notificationSubscriptionManager.UnsubscribeAsync(input.UserIdentifier, NotificationNames.RoleCreated);

            await _notificationSubscriptionManager.UnsubscribeAsync(input.UserIdentifier, NotificationNames.RoleDeleted);
        }
Exemple #2
0
 public async Task UnSubscribeToNotification(NotificationSubscriptionInput input)
 {
     await _notificationSubscriptionManager.UnsubscribeAsync(input.UserIdentifier, input.NotificationName, input.EntityIdentifier);
 }