[ApplicationBuilder] must not create Window until it ensures that the host started #2381
Open
Description
What would you like to be added:
Trying to use OpenIddict Client it inserts a special IHostedService
that extracts protocol activation, redirects activation and stops the application.
This means until host initialization is completed Windows must not be created as initialization can probably fail or be terminated.
Now a Window always opens and closes after some period of time if that OpenIddict Client hosted service extracts activation.
Why is this needed:
To prevent Windows creation in unnecessary situations.
For which Platform:
- Windows
- Desktop