Table of Contents

Interface IChangeQueue

Namespace
Shift.Common.Timeline.Changes
Assembly
Shift.Common.dll

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

action Action<T>
organization Guid
before bool

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

organization Guid

Returns

bool

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

action Action<T>
organization Guid

Type Parameters

T

Publish(IChange)

Publishes an event to registered subscribers.

void Publish(IChange change)

Parameters

change IChange

Subscribe<T>(Action<T>)

Registers a handler for a specific event.

void Subscribe<T>(Action<T> action) where T : IChange

Parameters

action Action<T>

Type Parameters

T