EventAggregator calling handler multiple times with inherited object
See original GitHub issueConsider the following objects:
public class MyEventObject
{
public int PropertyOne { get; set; }
}
public class MyGenericEventObject<TValue> : MyEventObject
{
public TValue SomeValue { get; set; }
}
With the v4.0-Alpha1 version of CM, I’m getting two calls to an IHandle<MyEventObject>
whereas in the v3.x version of CM, I’m only getting a single call. Is this by design or a bug in the system?
Will review further and see if maybe there is a bug on my side, as this is a new discovery and I did not have this in prior usage of the v4.0-alpha1 libs.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
c# - EventAggregator multiple fired on one event
and then move several times between different pages, then when this event is called, it fires on the MainPageViewModel several times.
Read more >The Event Aggregator
When a subscriber is passed to the EventAggregator it is broken down into a special object called a Handler and a weak reference...
Read more >How To Use Prism EventAggregator for .NET App ...
First, we need to call GetEvent<TEvent>() on our EventAggregator, which will return an instance of our event. Then we call Subscribe(…) on the ......
Read more >WPF » 09 Communication - PrismNew - Read the Docs
This topic provides guidance when to use delegate commands and routed commands and when to use event aggregator and .NET framework events. When...
Read more >Event Aggregator
It gathers events from multiple sources and propagate them to interested parties. The event aggregator is loosely coupled with both ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What you’ve got there looks fine, if I can’t recreate the issue later on I’ll come back to you.
Let’s close it for now… if/when i get back to the solution, i will test and re-check this.