Skip to content

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

@guardrex

Description

@guardrex

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)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions