mirror of
https://github.com/DuendeSoftware/products
synced 2026-05-24 09:28:24 +00:00
fix(is): Only summarize usage in dev
This commit is contained in:
parent
0c6eb67f3b
commit
0d95d547bd
1 changed files with 10 additions and 5 deletions
|
|
@ -38,12 +38,17 @@ try
|
|||
.ConfigureServices()
|
||||
.ConfigurePipeline();
|
||||
|
||||
app.Lifetime.ApplicationStopping.Register(() =>
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
var usage = app.Services.GetRequiredService<LicenseUsageSummary>();
|
||||
Console.Write(Summary(usage));
|
||||
Console.ReadKey();
|
||||
});
|
||||
app.Lifetime.ApplicationStopping.Register(() =>
|
||||
{
|
||||
var usage = app.Services.GetRequiredService<LicenseUsageSummary>();
|
||||
Console.Write(Summary(usage));
|
||||
{
|
||||
Console.ReadKey();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
app.Run();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue