Class ChangeQueue
Implements a basic event queue.
public class ChangeQueue : IChangeQueue
- Inheritance
-
ChangeQueue
- Implements
- Inherited Members
- Extension Methods
Constructors
ChangeQueue()
Constructs the queue.
public ChangeQueue()
Methods
Extend<T>(Action<T>, Guid, bool)
Register a custom organization-specific handler for the event.
public void Extend<T>(Action<T> action, Guid organization, bool before = false) where T : IChange
Parameters
Type Parameters
T
Extends<T>(Guid)
Returns true if a custom organization-specific handler is registered for the event.
public bool Extends<T>(Guid organization)
Parameters
organizationGuid
Returns
Type Parameters
T
Override<T>(Action<T>, Guid)
Register a custom organization-specific handler for the event.
public void Override<T>(Action<T> action, Guid organization) where T : IChange
Parameters
Type Parameters
T
Publish(IChange)
Invokes each subscriber method registered to handle the event.
public void Publish(IChange change)
Parameters
changeIChange
Subscribe<T>(Action<T>)
Any number of subscribers can register for an event, and any one subscriber can register any number of methods to be invoked when the event is published.
public void Subscribe<T>(Action<T> action) where T : IChange
Parameters
actionAction<T>
Type Parameters
T