Example #1
0
 public DataImporter(IEntityFinder entityFinder
                     , IAttributeFinder attributeFinder
                     , IOptionSetDetailFinder optionSetDetailFinder
                     , IStringMapFinder stringMapFinder
                     , IWebHelper webHelper
                     , IDataCreater dataCreater
                     , IDataUpdater dataUpdater
                     , IDataFinder dataFinder
                     , IAggregateService aggregateService
                     , IImportFileService importFileService
                     , IImportDataService importDataService
                     , IImportMapService importMapService)
 {
     _entityFinder    = entityFinder;
     _attributeFinder = attributeFinder;
     _optionSetDetailServiceFinder = optionSetDetailFinder;
     _stringMapFinder   = stringMapFinder;
     _webHelper         = webHelper;
     _dataCreater       = dataCreater;
     _dataUpdater       = dataUpdater;
     _dataFinder        = dataFinder;
     _aggregateService  = aggregateService;
     _importFileService = importFileService;
     _importDataService = importDataService;
     _importMapService  = importMapService;
 }
 //Пробрасываем зависимости
 public MainViewModel(IOptions <FilesSettings> filesSettings, IImportDataService importDataService, IExportDataService exportDataService)
 {
     _filesSettings     = filesSettings;
     _importDataService = importDataService;
     _exportDataService = exportDataService;
     Initialize();
 }
 public NeverBounceFileProcessor(CronJobDb cronJob, JobService jobService, string neverBounceFileProcessorCacheName)
     : base(cronJob, jobService, neverBounceFileProcessorCacheName)
 {
     accountService = IoC.Container.GetInstance <IAccountService>();
     unitofWork     = IoC.Container.GetInstance <IUnitOfWork>();
     importService  = IoC.Container.GetInstance <IImportDataService>();
 }
 public NeverBounceFileJob(
     IAccountService accountService,
     IImportDataService importService,
     ApiManager apiManager,
     JobServiceConfiguration jobConfig)
 {
     _accountService = accountService;
     _importService  = importService;
     _apiManager     = apiManager;
     _jobConfig      = jobConfig;
 }
 public DataImporterController(IWebAppContext appContext
                               , IDataImporter dataImporter
                               , IDataExporter dataExporter
                               , IImportDataService importDataService
                               , IImportFileService importFileService
                               , IImportMapService importMapService)
     : base(appContext)
 {
     _dataImporter      = dataImporter;
     _dataExporter      = dataExporter;
     _importDataService = importDataService;
     _importFileService = importFileService;
     _importMapService  = importMapService;
 }
 public WebJobsMethods(IImportDataService importDataService)
 {
     ImportDataService = importDataService;
 }
Example #7
0
 public ImportDataHttp(IImportDataService service)
 {
     _service = service;
 }
Example #8
0
 //Пробрасываем нужные зависимости
 public ConsoleApplication(IImportDataService importDataService, IExportDataService exportDataService, IOptions <FilesSettings> filesOptions)
 {
     _importDataService = importDataService;
     _exportDataService = exportDataService;
     _filesOptions      = filesOptions;
 }
Example #9
0
 public ImportDataController(IWebHostEnvironment hostingEnvironment, ILogger <HomeController> logger, IImportDataService importData)
 {
     _hostingEnvironment = hostingEnvironment;
     _importDataService  = importData;
     _logger             = logger;
 }
Example #10
0
 public ImportController(IImportDataService dataService)
 {
     this.dataService = dataService;
 }
Example #11
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="dataService">Экземпляр интерфейса для получения необработанных данных откуда либо.</param>
 /// <param name="filesSettings">Экземпляр объекта конфигурации для получения названий файлов.</param>
 public PreparedExcelData(IImportDataService dataService, FilesSettings filesSettings)
 {
     _dataService   = dataService;
     _filesSettings = filesSettings;
 }