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

Move calls to RegisterOnPersisting to the end of component initialization #35115

Closed
guardrex opened this issue Apr 1, 2025 · 0 comments · Fixed by #35116
Closed

Move calls to RegisterOnPersisting to the end of component initialization #35115

guardrex opened this issue Apr 1, 2025 · 0 comments · Fixed by #35116

Comments

@guardrex
Copy link
Collaborator

guardrex commented Apr 1, 2025

Per Halter offline ...

[To] avoid the race with shutdown, I think you could just wait until the end of OnInitializedAsync to call RegisterOnPersisting after [the persistence object] has been initialized.

Cross-ref: #34765 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant