IHttpRecordingStore Interface

Defines the contract for loading and saving recorded HTTP interactions.

public interface IHttpRecordingStore

Methods

NameDescription
LoadAsync(CancellationToken)Loads all previously recorded entries. Returns an empty collection if no recording exists.
SaveAsync(IReadOnlyList<HttpRecordingEntry>, CancellationToken)Saves all recorded entries, replacing any previous data.

LoadAsync(CancellationToken)

Loads all previously recorded entries. Returns an empty collection if no recording exists.

SaveAsync(IReadOnlyList<HttpRecordingEntry>, CancellationToken)

Saves all recorded entries, replacing any previous data.

ValueTask SaveAsync(IReadOnlyList<HttpRecordingEntry> entries, CancellationToken cancellationToken)

Parameters

entries IReadOnlyList<HttpRecordingEntry>
cancellationToken CancellationToken

Returns

ValueTask