-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Startup Async Configure #14801
Startup Async Configure #14801
Conversation
src/OrchardCore/OrchardCore.Abstractions/Modules/IAsyncStartup.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Abstractions/Modules/IAsyncStartup.cs
Outdated
Show resolved
Hide resolved
Added OCBuilder helpers to allow
|
One last thing is that all async configure will run before non async configure. Maybe better that for each startup (ordered by their Oder property) we call both its async and non async configure. But as said would need to override |
Okay I found a way to allow the async configure to also configure routes. And now async configure and non async configure are called pair by pair for each startup, no longer all async configure before all non async configure. |
@MikeAlhayek
Fixes #14784, related to #14798
You can try this pattern that I used to configure the RequestLocalizationMiddleware