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()); }
public virtual void DeletePushNotifications(string id) { NotificationReport entity = dao.Get(id); dao.Delete(entity); }