Interface IResponseSimulator
Interface for an object that can simulate a HTTP response.
Namespace: Tableau.Migration.Net.Simulation
Assembly: Tableau.Migration.dll
Syntax
public interface IResponseSimulator
Methods
RespondAsync(HttpRequestMessage, CancellationToken)
Creates a simulated response for the request.
Declaration
Task<HttpResponseMessage> RespondAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request | The request to respond to. |
CancellationToken | cancellationToken | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<HttpResponseMessage> | The simulated response message. |