예제 #1
0
        private void configureInventoryAnalytics(IServiceCollection services, IConfiguration configuration)
        {
            string baseURL = configuration.GetValue <string>("InventoryAnalysisService:BaseURL");

            InventoryAnalyisServiceProxy ia = new InventoryAnalyisServiceProxy(baseURL);

            services.AddSingleton <InventoryAnalyisServiceProxy>(ia);
        }
예제 #2
0
 public ApiController(InventoryAnalyisServiceProxy iaSvcProxy)
 {
     this.iaSvcProxy = iaSvcProxy;
 }