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); }
public ExmEventsController() { _exmService = (IExmCampaignService)ServiceLocator.ServiceProvider.GetService(typeof(IExmCampaignService)); _contactService = (IContactService)ServiceLocator.ServiceProvider.GetService(typeof(IContactService)); }