public ExchangeService(
//            IDiscoveryClient discoveryClient,
            IServiceProvider serviceProvider,
            IExchangeClient exchangeClient,
            OrderManagerContext context,
            IOptionsSnapshot <OmsConfig> config,
            ILogger <ExchangeService> logger)
        {
//            _discoveryClient = discoveryClient;
            _scope          = serviceProvider.CreateScope();
            _contextFactory = () => (OrderManagerContext)_scope.ServiceProvider.GetService(typeof(OrderManagerContext));
            _exchangeClient = exchangeClient;
            _context        = context;
//            _handler = new DiscoveryHttpClientHandler(_discoveryClient, logFactory.CreateLogger<DiscoveryHttpClientHandler>());

            _config = config;
            _logger = logger;
        }
Пример #2
0
 // GET api/values
 public ClientController(ExchangeService exchangeService, OrderManagerContext context)
 {
     _exchangeService = exchangeService;
     _context         = context;
 }
Пример #3
0
 public orderlistsController(OrderManagerContext context)
 {
     _context = context;
 }