Table of Contents

Interface ICommandStore

Namespace
Shift.Common.Timeline.Commands
Assembly
Shift.Common.dll

Defines the methods needed from the command store.

public interface ICommandStore
Extension Methods

Methods

Delete(Guid)

Deletes a command from the store.

void Delete(Guid id)

Parameters

id Guid

Exists(Guid)

Returns true if a command exists.

bool Exists(Guid command)

Parameters

command Guid

Returns

bool

Get(Guid)

Gets the serialized version of specific command.

SerializedCommand Get(Guid command)

Parameters

command Guid

Returns

SerializedCommand

GetExpired(DateTimeOffset)

Gets all unstarted commands that are scheduled to send now.

SerializedCommand[] GetExpired(DateTimeOffset at)

Parameters

at DateTimeOffset

Returns

SerializedCommand[]

Insert(SerializedCommand)

Inserts a serialized command.

void Insert(SerializedCommand command)

Parameters

command SerializedCommand

Serialize(ICommand)

Returns the serialized version of a command.

SerializedCommand Serialize(ICommand command)

Parameters

command ICommand

Returns

SerializedCommand

Update(SerializedCommand)

Updates a serialized command.

void Update(SerializedCommand command)

Parameters

command SerializedCommand