Class InMemoryBatchStore
In-memory — entries live only for the process lifetime.
public sealed class InMemoryBatchStore : IBatchStore
Inheritance
Implements
Methods
GetAsync(string, IExchange?, CancellationToken)
Loads a previously-registered batch by id; null if unknown.
public Task<BatchJobRecord?> GetAsync(string batchId, IExchange? exchange = null, CancellationToken ct = default)
RegisterAsync(BatchJobRecord, IExchange?, CancellationToken)
Records a batch submission. Replaces an existing row with the same id.
public Task RegisterAsync(BatchJobRecord record, IExchange? exchange = null, CancellationToken ct = default)
UpdateStatusAsync(string, string, DateTimeOffset?, string?, IExchange?, CancellationToken)
Updates lifecycle status and optional fields. Unknown ids are ignored
public Task UpdateStatusAsync(string batchId, string status, DateTimeOffset? completedAtUtc = null, string? errorMessage = null, IExchange? exchange = null, CancellationToken ct = default)