public void Process()
 {
     DbProcessor.ForEachAccount(data => ProcessAccount(data));
     if (CreatedNotificationsCount > 0)
     {
         Logger.Info("Обработано уведомлений: " + CreatedNotificationsCount);
     }
 }
        public void ProcessAll()
        {
            ResetCounters();

            DbProcessor.ForEachAccount(x => ProcessAccount(
                                           x.Account.Id,
                                           x.AccountDbContext,
                                           x.Logger,
                                           x.Account.DisplayName,
                                           x.CancellationToken));
        }
 public void Process(Guid accountId, Guid componentId)
 {
     DbProcessor.ForEachAccount(data =>
     {
         if (data.Account.Id == accountId)
         {
             ProcessAccount(data, componentId);
         }
     });
     if (CreatedNotificationsCount > 0)
     {
         Logger.Info("Обработано уведомлений: " + CreatedNotificationsCount);
     }
 }
        public void ProcessAccount(Guid accountId, Guid unitTestId)
        {
            ResetCounters();

            DbProcessor.ForEachAccount(x =>
            {
                if (x.Account.Id == accountId)
                {
                    ProcessAccount(
                        x.Account.Id,
                        x.AccountDbContext,
                        x.Logger,
                        x.Account.DisplayName,
                        x.CancellationToken,
                        unitTestId);
                }
            });
        }