示例#1
0
        /// <summary>
        /// Notifies subscribers about the discovered message.
        /// </summary>
        /// <param name="recentMessages">Data on recent messages.</param>
        /// <returns>A task that represents the subscribers notification process.</returns>
        private async Task NotifySubscribersAsync(MessagesData recentMessages)
        {
            var notifications = await _notificationProvider.GenerateNotificationsAsync(recentMessages).ConfigureAwait(false);

            foreach (var notification in notifications)
            {
                await NotifyAsync(notification).ConfigureAwait(false);
            }
        }