Skip to content

Commit

Permalink
Merge pull request dotnet#29724 from dotnet/Rick-Anderson-patch-7
Browse files Browse the repository at this point in the history
Update Program.cs
  • Loading branch information
Rick-Anderson committed Jul 6, 2023
2 parents baae800 + fd82471 commit cb78993
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@
app.Run();
// </snippet_re>
#elif CONFIG //
// <snippet_config >
// <snippet_config>
var app = WebApplication.Create(args);

var message = app.Configuration["HelloKey"] ?? "Hello";
var message = app.Configuration["HelloKey"] ?? "Config failed!";

app.MapGet("/", () => message);

app.Run();
// </e >
// </snippet_config >
#elif LOG
// <snippet_log>
var app = WebApplication.Create(args);
Expand Down

0 comments on commit cb78993

Please sign in to comment.