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

Improve NavigationService for automatic ObservableRecipient activation #29

Open
LeftTwixWand opened this issue Oct 27, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request layer/application Means some changes in the Application layer layer/infrastructure Means some changes in the Infrastructure layer

Comments

@LeftTwixWand
Copy link
Owner

Issue #28 describes how to use CommunityToolkit.Mvvm.Messaging for ViewModels communication. The only one problem here, is every ViewModel which listens for a message, has to be manually activated: IsActive = true; to start listening.
So, it would be good to automatically activate such ViewModels somewhere in the NavigationService.
As a bad solution - all the ObservableRecipient instances can be activated in the Autofac container callback after they've being resolved.

@LeftTwixWand LeftTwixWand added enhancement New feature or request layer/application Means some changes in the Application layer layer/infrastructure Means some changes in the Infrastructure layer labels Oct 27, 2022
@LeftTwixWand LeftTwixWand self-assigned this Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request layer/application Means some changes in the Application layer layer/infrastructure Means some changes in the Infrastructure layer
Projects
None yet
Development

No branches or pull requests

1 participant