feat: add configuration output to the console during debugging

This commit is contained in:
Polianin Nikita 2024-01-26 19:35:45 +03:00
parent 7b8bff8e54
commit 98ebe5ffdb

View File

@ -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())
{