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; }
// GET api/values public ClientController(ExchangeService exchangeService, OrderManagerContext context) { _exchangeService = exchangeService; _context = context; }
public orderlistsController(OrderManagerContext context) { _context = context; }