Class InMemoryFlowScheduleStateStore
- Namespace
- FlowOrchestrator.InMemory
- Assembly
- FlowOrchestrator.InMemory.dll
Persistent in-memory implementation of IFlowScheduleStateStore registered when
UseInMemory() is configured. Schedule overrides and pause states survive for the lifetime
of the process but are lost on restart.
public sealed class InMemoryFlowScheduleStateStore : IFlowScheduleStateStore
- Inheritance
-
InMemoryFlowScheduleStateStore
- Implements
- Inherited Members
Methods
DeleteAsync(string)
Removes the schedule state for the given job ID if it exists.
public Task DeleteAsync(string jobId)
Parameters
jobIdstring
Returns
GetAllAsync()
Returns all persisted schedule states.
public Task<IReadOnlyList<FlowScheduleState>> GetAllAsync()
Returns
GetAsync(string)
Returns the schedule state for the given Hangfire recurring job ID, or null if no override has been saved.
public Task<FlowScheduleState?> GetAsync(string jobId)
Parameters
jobIdstring
Returns
SaveAsync(FlowScheduleState)
Inserts or replaces the schedule state for JobId.
public Task SaveAsync(FlowScheduleState state)
Parameters
stateFlowScheduleState