Exemple #1
0
        public async Task SendTextMessage(int actionTypeId, string text)
        {
            var subscriptions = await _notificationQueries.GetUserNotificationSubscriptions(actionTypeId);

            // Notify all subscribed members about the action
            foreach (var subscription in subscriptions)
            {
                var notificationProvider = _notificationContext.ResolveNotificationMessenger(subscription.MessengerTypeId);

                notificationProvider.SendMessage(subscription.UserIndetifier, text);
                notificationProvider.SaveMessage(subscription.UserIndetifier, text: text);
            }
        }