Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 06c47d5

Browse files
Rick-Andersoncommonsensesoftware
authored andcommitted
use IsDevelopment
1 parent 84b1b80 commit 06c47d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎examples/AspNetCore/OData/SomeODataOpenApiExample/Program.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
// Configure the HTTP request pipeline.
6565

6666
app.UseSwagger();
67-
if ( builder.Environment.IsDevelopment() )
67+
if ( app.Environment.IsDevelopment() )
6868
{
6969
app.UseSwaggerUI(
7070
options =>

‎examples/AspNetCore/WebApi/MinimalOpenApiExample/Program.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
.Produces( 400 );
265265

266266
app.UseSwagger();
267-
if ( builder.Environment.IsDevelopment() )
267+
if ( app.Environment.IsDevelopment() )
268268
{
269269
app.UseSwaggerUI(
270270
options =>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /