private void configureInventoryAnalytics(IServiceCollection services, IConfiguration configuration) { string baseURL = configuration.GetValue <string>("InventoryAnalysisService:BaseURL"); InventoryAnalyisServiceProxy ia = new InventoryAnalyisServiceProxy(baseURL); services.AddSingleton <InventoryAnalyisServiceProxy>(ia); }
public ApiController(InventoryAnalyisServiceProxy iaSvcProxy) { this.iaSvcProxy = iaSvcProxy; }