Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(is): LicenseUsageSummary resolution #1709

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

josephdecock
Copy link
Member

Fixed usage in the main host of the LicenseUsageSummary so that it is resolved at shutdown properly.

Fixed usage in the main host of the LicenseUsageSummary so that it is resolved at shutdown properly.
@josephdecock josephdecock force-pushed the jmdc/license-summary-resolution branch from 57eaaeb to 0c6eb67 Compare January 7, 2025 17:38
{
var usage = app.Services.GetRequiredService<LicenseUsageSummary>();
Console.Write(Summary(usage));
Console.ReadKey();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this is a demo, the idea of having Console.ReadKey here might be problematic for folks copying and pasting this into a production application. Should we leave a comment about this blocking?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I added the readkey because on my machine (vscode on windows) the host runs in an external terminal which is closed as soon as the app exits. We could wrap either the whole summary or just the readkey in an if (app.Environment.IsDevelopment())?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That could work as well.

@josephdecock josephdecock merged commit f6b1590 into releases/is/7.1.x Jan 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants