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
serializerIJsonSerializer
Properties
Serializer
public IJsonSerializer Serializer { get; }
Property Value
Methods
Delete(Guid)
Deletes a command from the store.
public void Delete(Guid id)
Parameters
idGuid
Exists(Guid)
Returns true if a command exists.
public bool Exists(Guid command)
Parameters
commandGuid
Returns
Get(Guid)
Gets the serialized version of specific command.
public SerializedCommand Get(Guid command)
Parameters
commandGuid
Returns
GetExpired(DateTimeOffset)
Gets all unstarted commands that are scheduled to send now.
public SerializedCommand[] GetExpired(DateTimeOffset at)
Parameters
Returns
Insert(SerializedCommand)
Inserts a serialized command.
public void Insert(SerializedCommand c)
Parameters
Serialize(ICommand)
Returns the serialized version of a command.
public SerializedCommand Serialize(ICommand command)
Parameters
commandICommand
Returns
Update(SerializedCommand)
Updates a serialized command.
public void Update(SerializedCommand c)