Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: Problems with EventAggregator

$
0
0
To anyone that has come across this problem

I had the same problem today. The subscribing method need not be made public. Another (and in my case better) option was:

ea.GetEvent(Of CustomerSelectedEvent).Subscribe(AddressOf Me.test, True)

That second boolean specifies that you wish to keep the subscriber reference alive. This fixed the issue.

Kurren.

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>