private async Task CalculateAndSaveReport(Notification notification, BackingStoreInfo stateInfo)
        {
            var summary = await _reportCalculator.Calculate(notification);

            var report = new NotificationReport
            {
                Source    = notification.Source,
                Id        = notification.Id,
                WordCount = summary.WordCount
            };
            await _reportDal.Save(stateInfo, report.ToString());
        }
Exemple #2
0
        public virtual void DeletePushNotifications(string id)
        {
            NotificationReport entity = dao.Get(id);

            dao.Delete(entity);
        }