We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3ed99 commit 206bcf6Copy full SHA for 206bcf6
WebCodeFlowPkceClient/HostingExtensions.cs
@@ -8,13 +8,10 @@ namespace WebCodeFlowPkceClient;
8
9
internal static class HostingExtensions
10
{
11
- private static IWebHostEnvironment? _env;
12
-
13
public static WebApplication ConfigureServices(this WebApplicationBuilder builder)
14
15
var services = builder.Services;
16
var configuration = builder.Configuration;
17
- _env = builder.Environment;
18
19
services.AddTransient<IClaimsTransformation, MyClaimsTransformation>();
20
@@ -60,7 +57,7 @@ public static WebApplication ConfigurePipeline(this WebApplication app)
60
57
61
58
app.UseSerilogRequestLogging();
62
59
63
- if (_env!.IsDevelopment())
+ if (app.Environment.IsDevelopment())
64
65
app.UseDeveloperExceptionPage();
66
}
0 commit comments