diff --git a/samples/ASP.NET Core 3/BasePathStrategySample/Startup.cs b/samples/ASP.NET Core 3/BasePathStrategySample/Startup.cs index 3d278a8f..ed8bfdc6 100644 --- a/samples/ASP.NET Core 3/BasePathStrategySample/Startup.cs +++ b/samples/ASP.NET Core 3/BasePathStrategySample/Startup.cs @@ -28,7 +28,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/DataIsolationSample/Startup.cs b/samples/ASP.NET Core 3/DataIsolationSample/Startup.cs index 66c56bdc..7710b89a 100644 --- a/samples/ASP.NET Core 3/DataIsolationSample/Startup.cs +++ b/samples/ASP.NET Core 3/DataIsolationSample/Startup.cs @@ -35,7 +35,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/DelegateStrategySample/Startup.cs b/samples/ASP.NET Core 3/DelegateStrategySample/Startup.cs index 0ede6e96..eec7c380 100644 --- a/samples/ASP.NET Core 3/DelegateStrategySample/Startup.cs +++ b/samples/ASP.NET Core 3/DelegateStrategySample/Startup.cs @@ -36,7 +36,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/EFCoreStoreSample/Startup.cs b/samples/ASP.NET Core 3/EFCoreStoreSample/Startup.cs index 8faf46b0..f75cae51 100644 --- a/samples/ASP.NET Core 3/EFCoreStoreSample/Startup.cs +++ b/samples/ASP.NET Core 3/EFCoreStoreSample/Startup.cs @@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/HostStrategySample/Startup.cs b/samples/ASP.NET Core 3/HostStrategySample/Startup.cs index b17a6c20..b5ae33fe 100644 --- a/samples/ASP.NET Core 3/HostStrategySample/Startup.cs +++ b/samples/ASP.NET Core 3/HostStrategySample/Startup.cs @@ -29,7 +29,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSample/Startup.cs b/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSample/Startup.cs index 301e76f4..0fa55faf 100644 --- a/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSample/Startup.cs +++ b/samples/ASP.NET Core 3/HttpRemoteStoreSample/HttpRemoteStoreSample/Startup.cs @@ -28,7 +28,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/IdentityDataIsolationSample/Startup.cs b/samples/ASP.NET Core 3/IdentityDataIsolationSample/Startup.cs index d241df20..dc4c9dbd 100644 --- a/samples/ASP.NET Core 3/IdentityDataIsolationSample/Startup.cs +++ b/samples/ASP.NET Core 3/IdentityDataIsolationSample/Startup.cs @@ -59,7 +59,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseStatusCodePages(); diff --git a/samples/ASP.NET Core 3/PerTenantAuthenticationSample/Startup.cs b/samples/ASP.NET Core 3/PerTenantAuthenticationSample/Startup.cs index 48070367..b894afdd 100644 --- a/samples/ASP.NET Core 3/PerTenantAuthenticationSample/Startup.cs +++ b/samples/ASP.NET Core 3/PerTenantAuthenticationSample/Startup.cs @@ -42,7 +42,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/RouteStrategySample/Startup.cs b/samples/ASP.NET Core 3/RouteStrategySample/Startup.cs index 6ebb9340..d46e86a7 100644 --- a/samples/ASP.NET Core 3/RouteStrategySample/Startup.cs +++ b/samples/ASP.NET Core 3/RouteStrategySample/Startup.cs @@ -29,7 +29,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/SessionStrategySample/Startup.cs b/samples/ASP.NET Core 3/SessionStrategySample/Startup.cs index c59c4ee4..c1c5b079 100644 --- a/samples/ASP.NET Core 3/SessionStrategySample/Startup.cs +++ b/samples/ASP.NET Core 3/SessionStrategySample/Startup.cs @@ -35,7 +35,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } diff --git a/samples/ASP.NET Core 3/StaticStrategySample/Startup.cs b/samples/ASP.NET Core 3/StaticStrategySample/Startup.cs index 4b2a22f8..ed5d33d3 100644 --- a/samples/ASP.NET Core 3/StaticStrategySample/Startup.cs +++ b/samples/ASP.NET Core 3/StaticStrategySample/Startup.cs @@ -28,7 +28,7 @@ public void ConfigureServices(IServiceCollection services) public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.EnvironmentName == "Development") + if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); }