Intersoft ClientUI Documentation
EventAggregator Class
Members 



Represents a class that serves as the hub/aggregator for events messaging.
Object Model
EventAggregator ClassEventAggregator Class
Syntax
Public Class EventAggregator 
   Implements IEventAggregator 
Dim instance As EventAggregator
public class EventAggregator : IEventAggregator  
public ref class EventAggregator : public IEventAggregator  
Remarks

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.

Inheritance Hierarchy

System.Object
   Intersoft.Client.Framework.EventAggregator

Requirements

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

See Also

Reference

EventAggregator Members
Intersoft.Client.Framework Namespace

Send Feedback