Example #1
0
 public LeadJob(
     ILeadAdaptersRepository‏ leadAdaptersRepository‏,
     IAccountRepository accountRepository,
     IServiceProviderRepository serviceProviderRepository,
     IImportDataRepository importDataRepository,
     ISearchService <Contact> searchService,
     ICustomFieldService customFieldService,
     ICachingService cahceService,
     ICommunicationService communicationService,
     IUnitOfWork unitOfWork,
     IMailGunService mailGunService,
     IContactService contactService)
 {
     _leadAdaptersRepository    = leadAdaptersRepository;
     _accountRepository         = accountRepository;
     _serviceProviderRepository = serviceProviderRepository;
     _importDataRepository      = importDataRepository;
     _searchService             = searchService;
     _customFieldService        = customFieldService;
     _cahceService         = cahceService;
     _communicationService = communicationService;
     _unitOfWork           = unitOfWork;
     _mailGunService       = mailGunService;
     _contactService       = contactService;
 }
Example #2
0
 public ImportLeadJob(
     ILeadAdaptersRepository‏ leadAdaptersRepository,
     IServiceProviderRepository serviceProviderRepository,
     IImportDataRepository importDataRepository,
     ISearchService <Contact> searchService,
     ICustomFieldService customFieldService,
     ISuppressionListService suppressionListService,
     ICommunicationService communicationService,
     IMailGunService mailGunService,
     IContactService contactService,
     IUnitOfWork unitofWork,
     ICachingService cacheService,
     IDropdownValuesService dropdownValuesService)
 {
     _leadAdaptersRepository‏   = leadAdaptersRepository;
     _serviceProviderRepository = serviceProviderRepository;
     _importDataRepository      = importDataRepository;
     _searchService             = searchService;
     _customFieldService        = customFieldService;
     _suppressionListService    = suppressionListService;
     _cacheService          = cacheService;
     _communicationService  = communicationService;
     _mailGunService        = mailGunService;
     _contactService        = contactService;
     _unitofWork            = unitofWork;
     _dropdownValuesService = dropdownValuesService;
 }
Example #3
0
 public IDXLeadAdapterProvider(int accountId, int leadAdapterAndAccountMapID, ILeadAdaptersRepository leadAdaptersRepository, IServiceProviderRepository serviceProviderRepository,
                               IImportDataRepository importDataRepository, ISearchService <Contact> searchService, IUnitOfWork unitOfWork,
                               ICustomFieldService customFieldService, ICachingService cacheService, ICommunicationService communicationService, IMailGunService mailGunService, IContactService contactService)
     : base(accountId, leadAdapterAndAccountMapID, LeadAdapterTypes.BDX, leadAdaptersRepository, importDataRepository, searchService, unitOfWork,
            customFieldService, cacheService, serviceProviderRepository, mailGunService, contactService)
 {
     this.mailGunService       = mailGunService;
     this.searchService        = searchService;
     this.contactService       = contactService;
     this.importDataRepository = importDataRepository;
 }
Example #4
0
 public FacebookLeadAdapterProvider(int accountId, int leadAdapterAndAccountMapID, ILeadAdaptersRepository leadAdaptersRepository, IServiceProviderRepository serviceProviderRepository,
                                    IImportDataRepository importDataRepository, ISearchService <Contact> searchService, IUnitOfWork unitOfWork,
                                    ICustomFieldService customFieldService, ICachingService cacheService, ICommunicationService communicationService, IMailGunService mailGunService, IContactService contactService, IAccountRepository accRepository)
     : base(accountId, leadAdapterAndAccountMapID, LeadAdapterTypes.BDX, leadAdaptersRepository, importDataRepository, searchService, unitOfWork,
            customFieldService, cacheService, serviceProviderRepository, mailGunService, contactService)
 {
     Logger.Current.Verbose("Enter into Facebook LeadAdapterProvider");
     this.mailGunService            = mailGunService;
     this.searchService             = searchService;
     this.contactService            = contactService;
     this.leadAdaptersRepository    = leadAdaptersRepository;
     this.importDataRepository      = importDataRepository;
     this.accountRepository         = accRepository;
     this.cacheService              = cacheService;
     this.customFieldService        = customFieldService;
     this.serviceProviderRepository = serviceProviderRepository;
 }
Example #5
0
 public LeadProcessor(CronJobDb cronJob, JobService jobService, string leadProcessorCacheName)
     : base(cronJob, jobService, leadProcessorCacheName)
 {
     leadAdaptersRepository‏   = IoC.Container.GetInstance <ILeadAdaptersRepository‏>();
     contactRepository         = IoC.Container.GetInstance <IContactRepository>();
     serviceProviderRepository = IoC.Container.GetInstance <IServiceProviderRepository>();
     importDataRepository      = IoC.Container.GetInstance <IImportDataRepository>();
     searchService             = IoC.Container.GetInstance <ISearchService <Contact> >();
     tagService           = IoC.Container.GetInstance <ITagService>();
     customFieldService   = IoC.Container.GetInstance <ICustomFieldService>();
     cahceService         = IoC.Container.GetInstance <ICachingService>();
     communicationService = IoC.Container.GetInstance <ICommunicationService>();
     unitOfWork           = IoC.Container.GetInstance <IUnitOfWork>();
     mailGunService       = IoC.Container.GetInstance <IMailGunService>();
     contactService       = IoC.Container.GetInstance <IContactService>();
     accountRepository    = IoC.Container.GetInstance <IAccountRepository>();
 }
Example #6
0
 public ImportLeadProcessor(CronJobDb cronJob, JobService jobService, string importProcessorCacheName)
     : base(cronJob, jobService, importProcessorCacheName)
 {
     leadAdaptersRepository‏   = IoC.Container.GetInstance <ILeadAdaptersRepository‏>();
     serviceProviderRepository = IoC.Container.GetInstance <IServiceProviderRepository>();
     importDataRepository      = IoC.Container.GetInstance <IImportDataRepository>();
     searchService             = IoC.Container.GetInstance <ISearchService <Contact> >();
     customFieldService        = IoC.Container.GetInstance <ICustomFieldService>();
     suppressionListService    = IoC.Container.GetInstance <ISuppressionListService>();
     suppressionListRepository = IoC.Container.GetInstance <ISuppressionListRepository>();
     cahceService          = IoC.Container.GetInstance <ICachingService>();
     communicationService  = IoC.Container.GetInstance <ICommunicationService>();
     mailGunService        = IoC.Container.GetInstance <IMailGunService>();
     contactService        = IoC.Container.GetInstance <IContactService>();
     unitofWork            = IoC.Container.GetInstance <IUnitOfWork>();
     dropdownValuesService = IoC.Container.GetInstance <IDropdownValuesService>();
 }
 public BaseLeadAdapterProvider(int accountId, int leadAdapterAndAccountMapID, LeadAdapterTypes leadAdapterType
                                , ILeadAdaptersRepository leadAdaptersRepository, IImportDataRepository importDataRepository, ISearchService <Contact> searchService,
                                IUnitOfWork unitOfWork, ICustomFieldService customFieldService, ICachingService cacheService, IServiceProviderRepository serviceProviderRepository, IMailGunService mailGunService,
                                IContactService contactService)
 {
     this.AccountID  = accountId;
     this.repository = leadAdaptersRepository;
     this.serviceProviderRepository = serviceProviderRepository;
     this.importDataRepository      = importDataRepository;
     this.customFieldService        = customFieldService;
     this.unitOfWork          = unitOfWork;
     this.mailGunService      = mailGunService;
     this.contactService      = contactService;
     this.leadAdapterType     = leadAdapterType;
     this.cacheService        = cacheService;
     LeadAdapterAccountMapID  = leadAdapterAndAccountMapID;
     leadAdapterAndAccountMap = repository.GetLeadAdapterByID(LeadAdapterAccountMapID);
     _fieldMappings           = GetFieldMappings();
 }
Example #8
0
 public LeadAdapterService(ILeadAdaptersRepository leadAdaptersRepository,
                           ILeadAdaptersJobLogsRepository leadAdaptersJobLogsRepository, ITagRepository tagRepository,
                           IUnitOfWork unitOfWork, ICustomFieldService customfieldService, ICustomFieldRepository customfieldRepository, IAccountRepository accountRepository)
 {
     if (leadAdaptersRepository == null)
     {
         throw new ArgumentNullException("leadAdapterRepository");
     }
     if (unitOfWork == null)
     {
         throw new ArgumentNullException("unitOfWork");
     }
     this.indexingService               = new IndexingService();
     this.leadAdaptersRepository        = leadAdaptersRepository;
     this.leadAdaptersJobLogsRepository = leadAdaptersJobLogsRepository;
     this.tagRepository         = tagRepository;
     this.customfieldService    = customfieldService;
     this.customfieldRepository = customfieldRepository;
     this.accountRepository     = accountRepository;
     this.unitOfWork            = unitOfWork;
 }