@@ -17,7 +17,6 @@ public void ConfigureServices(IServiceCollection services)
17
17
. AddAppInsight ( Configuration )
18
18
. AddHealthChecks ( Configuration )
19
19
. AddCustomMvc ( Configuration )
20
- . AddDevspaces ( )
21
20
. AddHttpClientServices ( Configuration ) ;
22
21
23
22
IdentityModelEventSource . ShowPII = true ; // Caution! Do NOT use in production: https://aka.ms/IdentityModel/PII
@@ -126,21 +125,18 @@ public static IServiceCollection AddHttpClientServices(this IServiceCollection s
126
125
services . AddTransient < HttpClientRequestIdDelegatingHandler > ( ) ;
127
126
128
127
//set 5 min as the lifetime for each HttpMessageHandler int the pool
129
- services . AddHttpClient ( "extendedhandlerlifetime" ) . SetHandlerLifetime ( TimeSpan . FromMinutes ( 5 ) ) . AddDevspacesSupport ( ) ;
128
+ services . AddHttpClient ( "extendedhandlerlifetime" ) . SetHandlerLifetime ( TimeSpan . FromMinutes ( 5 ) ) ;
130
129
131
130
//add http client services
132
131
services . AddHttpClient < IBasketService , BasketService > ( )
133
132
. SetHandlerLifetime ( TimeSpan . FromMinutes ( 5 ) ) //Sample. Default lifetime is 2 minutes
134
- . AddHttpMessageHandler < HttpClientAuthorizationDelegatingHandler > ( )
135
- . AddDevspacesSupport ( ) ;
133
+ . AddHttpMessageHandler < HttpClientAuthorizationDelegatingHandler > ( ) ;
136
134
137
- services . AddHttpClient < ICatalogService , CatalogService > ( )
138
- . AddDevspacesSupport ( ) ;
135
+ services . AddHttpClient < ICatalogService , CatalogService > ( ) ;
139
136
140
137
services . AddHttpClient < IOrderingService , OrderingService > ( )
141
138
. AddHttpMessageHandler < HttpClientAuthorizationDelegatingHandler > ( )
142
- . AddHttpMessageHandler < HttpClientRequestIdDelegatingHandler > ( )
143
- . AddDevspacesSupport ( ) ;
139
+ . AddHttpMessageHandler < HttpClientRequestIdDelegatingHandler > ( ) ;
144
140
145
141
146
142
//add custom application services
0 commit comments