Esempio n. 1
0
        public void ConfigureServices(IServiceCollection services)
        {
            AuthenticationSetup.Initialize(services, Configuration);

            services.AddHttpClient <IOrderRetriever, OrderRetriever>(client => client.BaseAddress = new Uri("https://orders-api.com/"));

            services.AddMvc();
        }
        public void ConfigureServices(IServiceCollection services)
        {
            AuthenticationSetup.Initialize(services);

            services.AddHttpClient <IOrderRetriever, OrderRetriever>(client => client.BaseAddress = new Uri("https://orders-api.com/"));

            services.AddMvc(x => x.EnableEndpointRouting = false);
        }