Table of Contents

Class CommandStore

Namespace
InSite.Persistence
Assembly
InSite.Persistence.dll
public class CommandStore : ICommandStore
Inheritance
CommandStore
Implements
Inherited Members

Constructors

CommandStore(IJsonSerializer)

public CommandStore(IJsonSerializer serializer)

Parameters

serializer IJsonSerializer

Properties

Serializer

public IJsonSerializer Serializer { get; }

Property Value

IJsonSerializer

Methods

Delete(Guid)

Deletes a command from the store.

public void Delete(Guid id)

Parameters

id Guid

Exists(Guid)

Returns true if a command exists.

public bool Exists(Guid command)

Parameters

command Guid

Returns

bool

Get(Guid)

Gets the serialized version of specific command.

public SerializedCommand Get(Guid command)

Parameters

command Guid

Returns

SerializedCommand

GetExpired(DateTimeOffset)

Gets all unstarted commands that are scheduled to send now.

public SerializedCommand[] GetExpired(DateTimeOffset at)

Parameters

at DateTimeOffset

Returns

SerializedCommand[]

Insert(SerializedCommand)

Inserts a serialized command.

public void Insert(SerializedCommand c)

Parameters

c SerializedCommand

Serialize(ICommand)

Returns the serialized version of a command.

public SerializedCommand Serialize(ICommand command)

Parameters

command ICommand

Returns

SerializedCommand

Update(SerializedCommand)

Updates a serialized command.

public void Update(SerializedCommand c)

Parameters

c SerializedCommand