TestCacheWriteDelegatingHandler

Handler for mocking the HttpResponse returned by an HttpRequest using a UTF-8 encoded file.

Syntax

public class TestCacheWriteDelegatingHandler : TestCacheDelegatingHandlerBase, IDisposable

Inheritance

Implements

Constructors

TestCacheWriteDelegatingHandler

public TestCacheWriteDelegatingHandler(string responseFilesPath)
Constructor overload for specifying the root folder path.

Parameters

  • responseFilesPath string: Root folder path for storing static response files.

Methods

SendAsync

protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Overrides the method in the base to create a custom .

Parameters

Returns

Task<HttpResponseMessage>