Interface IChangeQueue
Provides the features for a basic service bus to handle the publication of events.
public interface IChangeQueue
- Extension Methods
Methods
Extend<T>(Action<T>, Guid, bool)
Register a custom organization-specific handler for the event.
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.
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.
void Override<T>(Action<T> action, Guid organization) where T : IChange
Parameters
Type Parameters
T
Publish(IChange)
Publishes an event to registered subscribers.
void Publish(IChange change)
Parameters
changeIChange
Subscribe<T>(Action<T>)
Registers a handler for a specific event.
void Subscribe<T>(Action<T> action) where T : IChange
Parameters
actionAction<T>
Type Parameters
T