Ejemplo n.º 1
0
        // ctor
        public OperatorController(
            ITerminal terminal,
            IHttpClientFactory httpClientFactory,
            ILogger <TerminalController> logger,
            IOptions <TerminalSettings> terminalSettings)
        {
            _logger   = logger;
            _settings = terminalSettings.Value;

            // added as singleton (not really)
            _terminal = terminal;
        }
Ejemplo n.º 2
0
        // ctor
        public TerminalController(
            ITerminal terminal,
            IHttpClientFactory httpClientFactory,
            ILogger <TerminalController> logger,
            IOptions <TerminalSettings> terminalSettings)
        {
            _logger   = logger;
            _settings = terminalSettings.Value;

            // added as singleton (not really)
            _terminal = terminal;

            // Create httpClients for sending containers
            _httpClientFactory = httpClientFactory;
        }