feat: add configuration output to the console during debugging
This commit is contained in:
parent
7b8bff8e54
commit
98ebe5ffdb
@ -84,6 +84,11 @@ public class Program
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
#if DEBUG
|
||||
// Write configurations
|
||||
foreach (var item in app.Configuration.AsEnumerable())
|
||||
Console.WriteLine($"{item.Key}:{item.Value}");
|
||||
#endif
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user