Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 242cbea

Browse files
committed
minor fix to removal of deprecated Azure Dev Spaces support
1 parent e43cf8e commit 242cbea

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/Web/WebMVC/Startup.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public void ConfigureServices(IServiceCollection services)
1717
.AddAppInsight(Configuration)
1818
.AddHealthChecks(Configuration)
1919
.AddCustomMvc(Configuration)
20-
.AddDevspaces()
2120
.AddHttpClientServices(Configuration);
2221

2322
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
126125
services.AddTransient<HttpClientRequestIdDelegatingHandler>();
127126

128127
//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));
130129

131130
//add http client services
132131
services.AddHttpClient<IBasketService, BasketService>()
133132
.SetHandlerLifetime(TimeSpan.FromMinutes(5)) //Sample. Default lifetime is 2 minutes
134-
.AddHttpMessageHandler<HttpClientAuthorizationDelegatingHandler>()
135-
.AddDevspacesSupport();
133+
.AddHttpMessageHandler<HttpClientAuthorizationDelegatingHandler>();
136134

137-
services.AddHttpClient<ICatalogService, CatalogService>()
138-
.AddDevspacesSupport();
135+
services.AddHttpClient<ICatalogService, CatalogService>();
139136

140137
services.AddHttpClient<IOrderingService, OrderingService>()
141138
.AddHttpMessageHandler<HttpClientAuthorizationDelegatingHandler>()
142-
.AddHttpMessageHandler<HttpClientRequestIdDelegatingHandler>()
143-
.AddDevspacesSupport();
139+
.AddHttpMessageHandler<HttpClientRequestIdDelegatingHandler>();
144140

145141

146142
//add custom application services

0 commit comments

Comments
 (0)