Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4578952
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:34:26+00:00 2026-05-21T20:34:26+00:00

loosly coupled communication between viewmodels is a nice concept. I have used Prism Eventaggregator

  • 0

loosly coupled communication between viewmodels is a nice concept.
I have used Prism Eventaggregator as well as MVVM Light Toolkit’s Messanger.

If the project grows I get alot of messages back and forth.

What is best practise of keeping track of my messages? Naming conventions? patterns?
etc…
How do you keep track?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T20:34:27+00:00Added an answer on May 21, 2026 at 8:34 pm

    I’ve found that there is a lot of value in providing a “Messages” namespace that contains your strongly typed messages. Keep in mind that well-defined messages will be more like contracts/DTOs – you want to maintain as much decoupling as possible, so dependencies should be kept to a minimum, otherwise the senders and receivers will both rely on common libraries. Sometimes this is necessary due to the nature of the message.

    I think you’ll also find that many messages may follow a particular pattern. Two common message patterns are what I’ll call the Action and Command. Action is more of a “verb” and a “subject”.

    For example, you might have MessageAction that exposes T Target, and the action is an enumeration that indicates update, select, add, delete, etc. That’s common and a generic message can wrap it, and your handlers listen for the generics that close the type they are interested in.

    The Command is an Action that originates from somewhere and then applies an action to a target. For example, maybe you are adding a role to a user. In that case, your item of interest is the role, your target is the user, and your action is adding it. That can be a CommandAction.

    Another common way to organize messages would be to implement a common interface or base class. It then becomes trivial to search for implementors in the project to determine where messages are being used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Prism's EventAggregator for loosely coupled communication between my module's ViewModels. I have
The event aggregator in Prism is great, and allows loosely coupled communication between modules
What is a good method for loosely-coupled inter-controller communication in MVC/MVP? For example, in
I have an eCommerce website and I like my projects very n-Tier/Loosely Coupled/highly extensible.
Zend framework is well known for loosely coupled components. I would like to use
Using VB.net 4.0 I have a Winforms application that is loosely based on MVVM.
Some of the SOA foundations are: Loosely Coupled Reusability Stateless Services Formal contracts between
Is there are any other alternative mechanism for communications between loosely coupled components in
I have two coupled classes DhcpServer and SessionManager . I got the following requirements
I have an windows application that is tightly coupled with a third party COM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.