Skip to content

Commit

Permalink
fix: environment configuration in samples (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
onurkanbakirci authored and AndrewTriesToCode committed Aug 28, 2022
1 parent e78a26f commit 6df8827
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion samples/ASP.NET Core 3/BasePathStrategySample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion samples/ASP.NET Core 3/DataIsolationSample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion samples/ASP.NET Core 3/DelegateStrategySample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion samples/ASP.NET Core 3/EFCoreStoreSample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion samples/ASP.NET Core 3/HostStrategySample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion samples/ASP.NET Core 3/RouteStrategySample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion samples/ASP.NET Core 3/SessionStrategySample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion samples/ASP.NET Core 3/StaticStrategySample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 6df8827

Please sign in to comment.