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

Registering an additional service at a later time #628

Open
Shujee opened this issue May 6, 2022 · 0 comments
Open

Registering an additional service at a later time #628

Shujee opened this issue May 6, 2022 · 0 comments

Comments

@Shujee
Copy link

Shujee commented May 6, 2022

Coming from MVVM Light, I could use Register() method at any time during the life of my application. This allowed me to register new behaviors/override existing registrations in referenced projects. For example, I could register a default/dummy implementation of IDialogService in the VM layer (static constructor of ViewModelLocator) and then override this registration in the View layer with an actual discrete implementation.

This no longer seems possible with the CommunityToolkit. There is a single ConfigureServices that I must call upon startup, in the VM layer. What do I do in the View layer to re-register/override an existing registration?

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

No branches or pull requests

1 participant