Skip to main content

Definition

Assembly: CloudNimble.Breakdance.Assemblies.dll Namespace: CloudNimble.Breakdance.Assemblies.Http Inheritance: System.Net.Http.DelegatingHandler

Syntax

CloudNimble.Breakdance.Assemblies.Http.TestCacheDelegatingHandlerBase

Summary

Base class for implementation of TestCache handlers for unit testing.

Constructors

.ctor

Constructor overload for specifying the root folder path.

Syntax

public TestCacheDelegatingHandlerBase(string responseFilesPath)

Parameters

NameTypeDescription
responseFilesPathstringRoot folder path for storing static response files.

Properties

ResponseFilesPath

Stores the root folder for reading/writing static response files.

Syntax

public string ResponseFilesPath { get; private set; }

Property Value

Type: string

Methods

GetFileExtensionString

Maps the MediaType header in the HttpRequestMessage to a known list of file extensions.

Syntax

public static string GetFileExtensionString(System.Net.Http.HttpRequestMessage request)

Parameters

NameTypeDescription
requestSystem.Net.Http.HttpRequestMessage-

Returns

Type: string

GetResponseMediaTypeString

Maps the file extension in the specified path to a known list of media types.

Syntax

public static string GetResponseMediaTypeString(string filePath)

Parameters

NameTypeDescription
filePathstring-

Returns

Type: string