public void AdjustEmailStatistics(EcmDataProvider ecmDataProvider, IRecipientManager recipientManager, Job job, MessageItem messageItem,
                                          CampaignSettings campaign)
        {
            _recipientManager = recipientManager;
            _ecmDataProvider  = ecmDataProvider;
            SetStatisticsOnMessageItem(messageItem, campaign.StartDate, campaign.EndDate);

            SetStatisticsOnCampaignItem(messageItem, campaign.StartDate, campaign.EndDate);

            SetStatisticsInExmDatabase(job, messageItem, campaign.StartDate, campaign.EndDate);
        }
示例#2
0
 public GenerateCampaignDataService(Guid exmCampaignId, CampaignSettings campaign)
 {
     _campaign                = campaign;
     _exmCampaignId           = exmCampaignId;
     _contactListRepository   = new ContactListRepository();
     _exmCampaignService      = (IExmCampaignService)ServiceLocator.ServiceProvider.GetService(typeof(IExmCampaignService));
     _dispatchManager         = (IDispatchManager)ServiceLocator.ServiceProvider.GetService(typeof(IDispatchManager));
     _ecmDataProvider         = (EcmDataProvider)ServiceLocator.ServiceProvider.GetService(typeof(EcmDataProvider));
     _recipientManagerFactory = (IRecipientManagerFactory)ServiceLocator.ServiceProvider.GetService(typeof(IRecipientManagerFactory));
     _logger      = (ILogger)ServiceLocator.ServiceProvider.GetService(typeof(ILogger));
     _itemUtilExt = (ItemUtilExt)ServiceLocator.ServiceProvider.GetService(typeof(ItemUtilExt));
     _adjustEmailStatisticsService      = new AdjustEmailStatisticsService();
     _randomContactMessageEventsFactory = new RandomContactMessageEventsFactory(_campaign);
 }