Class ResponseStore
Class that can store and retrieve response messages using an IResources instance
Inherited Members
Namespace: FakeHttp
Assembly: FakeHttp.dll
Syntax
public sealed class ResponseStore : ReadOnlyResponseStore, IResponseStore, IReadOnlyResponseStore
Constructors
| Improve this Doc View SourceResponseStore(IResources)
ctor
Declaration
public ResponseStore(IResources resources)
Parameters
Type | Name | Description |
---|---|---|
IResources | resources | An instance that can read and write to the underlying storage of response resources |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
ResponseStore(IResources, IResponseCallbacks)
Declaration
public ResponseStore(IResources resources, IResponseCallbacks callbacks)
Parameters
Type | Name | Description |
---|---|---|
IResources | resources | An instance that can read and write to the underlying storage of response resources |
IResponseCallbacks | callbacks | Object to manage and modify responses at runtime |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
Methods
| Improve this Doc View SourceStoreResponse(HttpResponseMessage)
Stores a response message for later retrieval
Declaration
public Task StoreResponse(HttpResponseMessage response)
Parameters
Type | Name | Description |
---|---|---|
HttpResponseMessage | response | The response message to store |
Returns
Type | Description |
---|---|
Task | Task |
Implements
Exceptions
Type | Condition |
---|---|
ArgumentNullException |