Intersoft.Client.Framework Namespace : EventAggregator Class |
Public Class EventAggregator Implements IEventAggregator
Dim instance As EventAggregator
public class EventAggregator : IEventAggregator
public ref class EventAggregator : public IEventAggregator
ClientUI’s event aggregator is designed to be simple and easy-to-use, yet powerful enough to cover a number of advanced scenarios. It takes only a single line of code to subscribe to an event, as well as for the event publication. See the following examples.
C# |
Copy Code
|
---|---|
// Subscribe to an event EventAggregator.Default.Subscribe<MailNotificationEvent, Mail>(OnMailReceived); // Publish an event EventAggregator.Default.Publish<MailNotificationEvent, Mail>(this.MailEntity); |
To learn more about event aggregator concept and usage, see Event Aggregator Overview.
System.Object
Intersoft.Client.Framework.EventAggregator
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2