Interface ICommandStore
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
idGuid
Exists(Guid)
Returns true if a command exists.
bool Exists(Guid command)
Parameters
commandGuid
Returns
Get(Guid)
Gets the serialized version of specific command.
SerializedCommand Get(Guid command)
Parameters
commandGuid
Returns
GetExpired(DateTimeOffset)
Gets all unstarted commands that are scheduled to send now.
SerializedCommand[] GetExpired(DateTimeOffset at)
Parameters
Returns
Insert(SerializedCommand)
Inserts a serialized command.
void Insert(SerializedCommand command)
Parameters
commandSerializedCommand
Serialize(ICommand)
Returns the serialized version of a command.
SerializedCommand Serialize(ICommand command)
Parameters
commandICommand
Returns
Update(SerializedCommand)
Updates a serialized command.
void Update(SerializedCommand command)
Parameters
commandSerializedCommand