Пример #1
0
 public CalculationService(
     IReadFileService readFileService,
     IInstructionSetService instructionSetService)
 {
     _readFileService       = readFileService;
     _instructionSetService = instructionSetService;
 }
Пример #2
0
 /// <summary>
 /// constructor de la clase que implementa IImportService.
 ///
 /// se implemta este constructor para inyectar dependecias de otras clases.
 /// </summary>
 /// <param name="config">instancia de la clase que contiene la configuración general de la aplicación.</param>
 /// <param name="readFile">instancia de la clase IReadFileService que se inyecta en esta clase.</param>
 /// <param name="lineMap">instancia de la clase ILineMapperService que se inyecta en esta clase.</param>
 public ImportService(IOptions <Config> config, IReadFileService readFile, ILineMappingService lineMap, PruebaAAContext db, ISqlBulkImport bulkImport)
 {
     _config     = config?.Value ?? throw new ArgumentNullException(nameof(config));
     _readFile   = readFile;
     _lineMap    = lineMap;
     _bulkImport = bulkImport;
     _db         = db;
 }
 public ManagmentService(IUploadService uploadServices, IReadFileService readService, IValidateFileService validateFileService,
                         IProcessInformation processInformation, ITrackLogService trackLogService, IExportFileService exportFileService)
 {
     this.uploadServices      = uploadServices;
     this.readService         = readService;
     this.validateFileService = validateFileService;
     this.processInformation  = processInformation;
     this.trackLogService     = trackLogService;
     this.exportFileService   = exportFileService;
 }
Пример #4
0
        public CompareService(ICompareConfigDocumentType configDocumentType, IReadFileService readFileService, IAnalyzeService analyzeService)
        {
            this.configDocumentType = configDocumentType;
            this.readFileService    = readFileService;
            this.analyzeService     = analyzeService;

            supportJTokenTypes = new Dictionary <FieldType, JTokenType>();
            supportJTokenTypes.Add(FieldType.Boolean, JTokenType.Boolean);
            supportJTokenTypes.Add(FieldType.Integer, JTokenType.Integer);
            supportJTokenTypes.Add(FieldType.String, JTokenType.String);
        }
Пример #5
0
        public MainPageViewModel(Type signinpage, Type dashboardpage, INavigation navigation)
        {
            string dbSql = DependencyService.Get <ISQLite>().GetLocalFilePath("db.sqlite3");

            _pageService   = new PageService();
            _signInPage    = signinpage;
            _dashboardPage = dashboardpage;
            _navigation    = navigation;
            //_userLoginService = new UserLoginService();
            _readFileService       = new ReadFileService();
            _getClientParamService = new GetClientParamService(dbSql);
            //var stream = _readFileService.GetFileStream("Navision.ControleDocuments.Services.DB.db.sqlite3");

            GetClientParamService t = new GetClientParamService(dbSql);

            var result = t.GetClient();

            IsBusy = false;
        }
Пример #6
0
 public HomeController(IReadFileService reader)
 {
     _reader = reader;
 }
Пример #7
0
 public ReadGrpcService(IReadFileService readFileService, ILogger <ReadGrpcService> logger)
 {
     _logger          = logger;
     _readFileService = readFileService;
 }
Пример #8
0
 public Startup(IReadFileService readFileService, IBlockProcessingService blockProcessingService, IOutputResult outputResult)
 {
     _readFileService        = readFileService;
     _blockProcessingService = blockProcessingService;
     _outputResult           = outputResult;
 }