Пример #1
0
        public Startup(IDowntimeRepository repository, DowntimeRepositoryMapper mapper, ILogger <Startup> logger)
        {
            this.repository = repository;
            this.mapper     = mapper;
            this.logger     = logger;

            logger.LogInformation("Hola mundo info");
            logger.LogError("Hola mundo error");
            logger.LogWarning("Hola mundo warning");
        }
Пример #2
0
        public DowntimeApplicationService(
            IDowntimeRepository repository,
            ILogger <DowntimeApplicationService> logger,
            TransactionItems <string> items)
        {
            this.repository = repository;
            this.logger     = logger;
            this.items      = items;

            logger.LogInformation("Hola mundo info");
            logger.LogError("Hola mundo error");
            logger.LogWarning("Hola mundo warning");
        }
Пример #3
0
 public OeeService(
     IProductionService productionService,
     IScrapService scrapService,
     IDowntimeRepository downtimeRepository,
     FmsbOeeContext fmsbOeeContext
     )
 {
     _productionService =
         productionService ?? throw new ArgumentNullException(nameof(productionService));
     _scrapService       = scrapService ?? throw new ArgumentNullException(nameof(scrapService));
     _downtimeRepository =
         downtimeRepository ?? throw new ArgumentNullException(nameof(downtimeRepository));
     _fmsbOeeContext =
         fmsbOeeContext ?? throw new ArgumentNullException(nameof(fmsbOeeContext));
 }
Пример #4
0
 public DowntimeService(IDowntimeRepository repository, IKpiTargetService kpiTargetService)
 {
     _repository       = repository;
     _kpiTargetService = kpiTargetService;
 }