Class InMemoryApprovalStore
In-memory approval store — sufficient for tests and demos.
public sealed class InMemoryApprovalStore : IApprovalStore
Inheritance
Implements
Methods
FindAsync(string, IExchange?, CancellationToken)
Looks up the previously-recorded decision for approvalId.
public Task<ApprovalRecord?> FindAsync(string approvalId, IExchange? exchange = null, CancellationToken ct = default)
RecordAsync(ApprovalRequest, ApprovalDecision, IExchange?, CancellationToken)
Records a decision against the pending request.
public Task RecordAsync(ApprovalRequest request, ApprovalDecision decision, IExchange? exchange = null, CancellationToken ct = default)