Table of Contents

Class ChangeQueue

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

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

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.

public 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.

public void Override<T>(Action<T> action, Guid organization) where T : IChange

Parameters

action Action<T>
organization Guid

Type Parameters

T

Publish(IChange)

Invokes each subscriber method registered to handle the event.

public void Publish(IChange change)

Parameters

change IChange

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

action Action<T>

Type Parameters

T