Пример #1
0
 public CountryController(ICsvService csvService, IFileService fileService,
                          ICountryRepository countryRepository)
 {
     _csvService        = csvService;
     _fileService       = fileService;
     _countryRepository = countryRepository;
 }
Пример #2
0
 public EtlService(IAmazonService amazonService, ICsvService csvService, IFtpService ftpService, ISqlService sqlService)
 {
     _amazonService = amazonService;
     _csvService    = csvService;
     _ftpService    = ftpService;
     _sqlService    = sqlService;
 }
Пример #3
0
 public CsvController(
     ICsvService csvService
     )
 {
     _csvService = csvService;
     // _csvService = new CsvService();
 }
Пример #4
0
        public CsvConnectorViewModel(ICsvService csvService)
        {
            this.csvService  = csvService;
            this.PickCsvFile = new RelayCommand <object>(this.ExecutePickCsvFile, o => true);

            this.ReloadCSVData = new RelayCommand <object>(this.ExecuteReloadCSVData, this.CanExecuteReloadCSVData);
        }
 public ImportCampaignMembersHandler(IChunkingService chunkingService, ICsvService csvService, IBulkImportService bulkImportService, ILogger <ImportCampaignMembersHandler> logger)
 {
     _chunkingService   = chunkingService;
     _csvService        = csvService;
     _bulkImportService = bulkImportService;
     _logger            = logger;
 }
Пример #6
0
 public CsvController(
     ICsvService service,
     ILogger <CsvController> logger)
 {
     _service = service;
     _logger  = logger;
 }
Пример #7
0
 public BackgroundWorker(ICsvService csvService, ISmtpService smtpService,
                         IWritableOptions <SchedulerConfig> schedulerConfig)
 {
     _csvService      = csvService;
     _smtpService     = smtpService;
     _schedulerConfig = schedulerConfig;
 }
Пример #8
0
 public DevicesController(ILogger <DevicesController> logger, IAzureConnector connector, IMemoryCache memoryCache, ICsvService csvService)
 {
     Connector    = connector;
     _logger      = logger;
     _memoryCache = memoryCache;
     _csvService  = csvService;
 }
Пример #9
0
 public TransactionService(ITransactionRepository transactionRepository, ICsvService csvService, ICategoryService categoryService, IUserService userService)
 {
     _transactionRepository = transactionRepository;
     _csvService            = csvService;
     _categoryService       = categoryService;
     _userService           = userService;
 }
Пример #10
0
 public CancellationsModel(IRepository <BillingActivity> repository,
                           ICsvService csvService)
 {
     _repository = repository;
     _cancellationReportsDatesModel = new ReportsDatesModel(defaultRange.StartDate, (DateTime)defaultRange.EndDate !);
     _csvService = csvService;
 }
Пример #11
0
 public HomeController(ILogger <HomeController> logger, ICsvRepository csvRepository, IWebHostEnvironment appEnvironment, IMapper mapper, ICsvService csvService)
 {
     _logger         = logger;
     _csvRepository  = csvRepository;
     _appEnvironment = appEnvironment;
     _mapper         = mapper;
     _csvService     = csvService;
 }
Пример #12
0
 public HaProxyCollector(
     IRepository <HapInfo> repository,
     ICsvService <HapServer> csvService,
     IBuilder <HapInfo> infoBuilder)
 {
     _repository = repository;
     _csvService = csvService;
     _builder    = infoBuilder;
 }
 public CompanyProductBarcodeService(IUnitOfWork uow, ILogger <ICompanyProductBarcodeService> logger,
                                     ICsvService <ImportCompanyProductBarcodeDto> importCompanyProductBarcodeCsvService, ICompanyProductService companyProductService,
                                     ISupplierService supplierService, ICompanyService companyService) : base(uow, logger)
 {
     SupplierService       = supplierService;
     CompanyService        = companyService;
     CompanyProductService = companyProductService;
     ImportCompanyProductBarcodeCsvService = importCompanyProductBarcodeCsvService;
 }
Пример #14
0
        private static void RegisterServices()
        {
            StandardKernel kernel = new StandardKernel();

            kernel.Load(new PaySlipModule());

            _paySlipService = kernel.Get <IPaySlipService>();
            _csvService     = kernel.Get <ICsvService>();
        }
Пример #15
0
        public AzureConnector(string connectionString, string rootDir, string discoveryFile, ICsvService csvService)
        {
            _csvService    = csvService;
            _discoveryFile = discoveryFile;

            var storageAccount = CloudStorageAccount.Parse(connectionString);

            _cloudBlobClient = storageAccount.CreateCloudBlobClient();
            _baseUrl         = $"{storageAccount.BlobStorageUri.PrimaryUri.ToString().TrimEnd('/')}/{rootDir}/";
        }
Пример #16
0
 public JobController(IAuthorizationService authorizationService, IJobService jobService,
                      IJobManagementService jobManagementService, IGetAnalysisService getAnalysisService,
                      ICsvService csvService, IEventTracker <JobController> eventTracker)
 {
     _authorizationService = authorizationService;
     _jobService           = jobService;
     _jobManagementService = jobManagementService;
     _getAnalysisService   = getAnalysisService;
     _csvService           = csvService;
     _eventTracker         = eventTracker;
 }
 public AmalgamationOutputService(
     IXmlSerializationService xmlSerializationService,
     IFileService fileService,
     ICsvService csvService,
     IDateTimeProvider dateTimeProvider)
 {
     _xmlSerializationService = xmlSerializationService;
     _fileService             = fileService;
     _csvService       = csvService;
     _dateTimeProvider = dateTimeProvider;
 }
 public UploadTransactionsCommandHandler(
     ITransactionService transactionService,
     IXmlService xmlService,
     ICsvService csvService,
     TransactionServiceFactory transactionServiceFactory)
 {
     this.transactionService        = transactionService;
     this.xmlService                = xmlService;
     this.csvService                = csvService;
     this.transactionServiceFactory = transactionServiceFactory;
 }
Пример #19
0
 public MarketoBulkImportService(IMarketoLeadClient marketoLeadClient,
                                 IMarketoBulkImportClient marketoBulkImportClient, ICsvService csvService, ILogger <MarketoBulkImportService> logger, IBulkImportStatusMapper bulkImportStatusMapper, IBulkImportJobMapper bulkImportJobMapper, IChunkingService chunkingService, IOptions <MarketoConfiguration> marketoOptions)
 {
     _marketoLeadClient       = marketoLeadClient;
     _marketoBulkImportClient = marketoBulkImportClient;
     _csvService             = csvService;
     _logger                 = logger;
     _bulkImportStatusMapper = bulkImportStatusMapper;
     _bulkImportJobMapper    = bulkImportJobMapper;
     _chunkingService        = chunkingService;
     _marketoOptions         = marketoOptions;
 }
 public CohortAnalysisService(IOptions <Settings> settings,
                              ICustomerService customerService,
                              IOrderService orderService,
                              ICohortCalculationLogic cohortCalculationLogic,
                              ICsvService csvService)
 {
     _settings               = settings.Value;
     _customerService        = customerService;
     _orderService           = orderService;
     _cohortCalculationLogic = cohortCalculationLogic;
     _csvService             = csvService;
 }
Пример #21
0
 public RunService(
     ICsvService csvService,
     IEnrollmentObjectService enrollmentService,
     IFileService fileService,
     IUserFeedbackService userFeedbackService,
     IJsonService jsonService)
 {
     _csvService          = csvService;
     _enrollmentService   = enrollmentService;
     _fileService         = fileService;
     _userFeedbackService = userFeedbackService;
     _jsonService         = jsonService;
 }
Пример #22
0
        public IntradayReportServiceImpl(IReportRepository reportRepository, ICsvService csvService)
        {
            if (reportRepository == null)
            {
                throw new ArgumentNullException(nameof(reportRepository));
            }
            if (csvService == null)
            {
                throw new ArgumentNullException(nameof(csvService));
            }

            _reportRepository = reportRepository;
            _csvService       = csvService;
        }
Пример #23
0
 public UsersController(
     IMapper mapper,
     IUnitOfWork unitOfWork,
     ITrainingRepository trainingRepository,
     IUserRepository userRepository,
     IEmailService emailService,
     ICsvService csvService)
 {
     this.trainingRepository = trainingRepository;
     this.emailService       = emailService;
     this.csvService         = csvService;
     this.userRepository     = userRepository;
     this.unitOfWork         = unitOfWork;
     this.mapper             = mapper;
 }
Пример #24
0
 public CatalogueService(
     ICsvService <ProductCatalogue> productCatalogueCsvService,
     ICsvService <ProductBarcode> productBarcodeCsvService,
     ICsvService <MergedCatalogue> mergedCatalogueCsvService,
     IUtilityService utilityService,
     IFileService fileService,
     ILogger <CatalogueService> logger)
 {
     _logger      = logger;
     _fileService = fileService;
     _productCatalogueCsvService = productCatalogueCsvService;
     _productBarcodeCsvService   = productBarcodeCsvService;
     _mergedCatalogueCsvService  = mergedCatalogueCsvService;
     _utilityService             = utilityService;
 }
Пример #25
0
        private static async Task Main(string[] args)
        {
            ICsvService csvService = CsvService.Instance;

            IDispatcher dispatcher = new Dispatcher();

            dispatcher.LoadTubeStations(csvService.LoadTubeInfo());
            dispatcher.LoadDrones(csvService.LoadDronesInfo());


            await dispatcher.Dispatch();

            Console.WriteLine("Simulation finished, press key to close.");
            Console.ReadKey();
        }
Пример #26
0
        public async Task <IActionResult> DownloadAsCsvAsync([FromServices] ICsvService csvService)
        {
            try
            {
                string csv = await csvService.GetLabStatesAsync(HttpContext.RequestAborted);

                return(File(Encoding.UTF8.GetBytes(csv), "text/csv", "labstates.csv"));
            }
            catch (InvalidOperationException ex)
            {
                _logger.LogError(ex, "Download as CSV");
                AddStatusMessage(_localizer["DownloadAsCsvAsync:UnknownError"], StatusMessageTypes.Error);
            }

            return(await RenderAsync(0, 0));
        }
Пример #27
0
        public UsersController(IGetProjectFactory getProjectFactory, IGetAllUserFactory getAllUserFactory,
                               IEventWatcher eventWatcher, IGetUserFactory getUserFactory,
                               IAddImportedUsersFactory addImportedUsersFactory,
                               IGetAddressForSetPasswordFactory getAddressForSetPasswordFactory,
                               ICsvService csvService, IEventBus eventBus, IMessageSender messageSender,
                               ILogger <UsersController> logger) : base(eventWatcher, eventBus)
        {
            this.getProjectFactory               = getProjectFactory;
            this.getUserFactory                  = getUserFactory;
            this.getAllUserFactory               = getAllUserFactory;
            this.csvService                      = csvService;
            this.addImportedUsersFactory         = addImportedUsersFactory;
            this.getAddressForSetPasswordFactory = getAddressForSetPasswordFactory;
            this.messageSender                   = messageSender;

            eventBus.SubscribeAll(m => logger.Log(LogLevel.Information, $"Event message:{m.ToString()}"));
        }
Пример #28
0
 public SeriesController(
     ISeriesService seriesService,
     Core.Services.IClubService clubService,
     IAuthorizationService authService,
     IAdminTipService adminTipService,
     ICsvService csvService,
     UserManager <ApplicationUser> userManager,
     IMapper mapper)
 {
     _seriesService   = seriesService;
     _clubService     = clubService;
     _authService     = authService;
     _adminTipService = adminTipService;
     _csvService      = csvService;
     _userManager     = userManager;
     _mapper          = mapper;
 }
        public ProjectsController(IEventWatcher eventWatcher, ILogger <ProjectsController> logger, IEventBus eventBus,
                                  IDeleteByIdUserFactory deleteByIdUserFactory, IGetProjectFactory getProjectFactory,
                                  IDeleteProjectFactory deleteProjectFactory, IAddProjectFactory addProjectFactory,
                                  IGetAllProjectFactory getAllProjectFactory, IAssignUserFactory assignUserFactory,
                                  IMessageSender messageSender, IGetUserFactory getUserFactory,
                                  IGetProjectWithAllFactory getProjectWithAllFactory, ICsvService csvGenerator)
            : base(eventWatcher, eventBus)
        {
            _csvGenerator                 = csvGenerator;
            _assignUserFactory            = assignUserFactory;
            _deleteByIdUserFactory        = deleteByIdUserFactory;
            _getProjectFactory            = getProjectFactory;
            _getAllProjectFactory         = getAllProjectFactory;
            _deleteProjectFactory         = deleteProjectFactory;
            _addProjectFactory            = addProjectFactory;
            _messageSender                = messageSender;
            _getUserFactory               = getUserFactory;
            this.getProjectWithAllFactory = getProjectWithAllFactory;

            eventBus.SubscribeAll(m => logger.Log(LogLevel.Information, $"Event message:{m.ToString()}"));
        }
Пример #30
0
        public FilamentService(ISerialService serialService, IXmlService xmlService, ICsvService csvService)
        {
            stopWatch = new Stopwatch();

            _serialService = serialService;
            _serialService.DiameterChanged += SerialService_DiameterChanged;

            _xmlService = xmlService;
            _csvService = csvService;

            FilamentServiceVariables = new Dictionary <string, string>();
            FilamentServiceVariables.Add("ActualDiameter", "");
            FilamentServiceVariables.Add("HighestValue", "");
            FilamentServiceVariables.Add("LowestValue", "");
            FilamentServiceVariables.Add("NominalValue", "");
            FilamentServiceVariables.Add("UpperLimit", "");
            FilamentServiceVariables.Add("LowerLimit", "");
            FilamentServiceVariables.Add("Duration", "");

            BuildXmlData();
            SetupPlots();
        }