Class ProtoHttpClientResolution

Namespace
ProtoTest.Http
Assembly
ProtoTest.Http.dll

The HTTP client a protocol accessor will use, together with the per-test resolver that supplies its base address and the names requests and traces should use.

public sealed record ProtoHttpClientResolution : IEquatable<ProtoHttpClientResolution>
Inheritance
ProtoHttpClientResolution
Implements
Inherited Members
Extension Methods

Constructors

ProtoHttpClientResolution(HttpClient, string, string, string?, string?, string, Func<ProtoExecutionContext, CancellationToken, ValueTask<Uri>>?)

The HTTP client a protocol accessor will use, together with the per-test resolver that supplies its base address and the names requests and traces should use.

public ProtoHttpClientResolution(HttpClient Client, string RequestedName, string ResolvedName, string? ApplicationName, string? SourceClientName, string EndpointResolver, Func<ProtoExecutionContext, CancellationToken, ValueTask<Uri>>? BaseAddressResolver)

Parameters

Client HttpClient
RequestedName string
ResolvedName string
ApplicationName string
SourceClientName string
EndpointResolver string
BaseAddressResolver Func<ProtoExecutionContext, CancellationToken, ValueTask<Uri>>

Properties

ApplicationName

public string? ApplicationName { get; init; }

Property Value

string

BaseAddressResolver

public Func<ProtoExecutionContext, CancellationToken, ValueTask<Uri>>? BaseAddressResolver { get; init; }

Property Value

Func<ProtoExecutionContext, CancellationToken, ValueTask<Uri>>

Client

public HttpClient Client { get; init; }

Property Value

HttpClient

EndpointResolver

public string EndpointResolver { get; init; }

Property Value

string

RequestedName

public string RequestedName { get; init; }

Property Value

string

ResolvedName

public string ResolvedName { get; init; }

Property Value

string

SourceClientName

public string? SourceClientName { get; init; }

Property Value

string

SourceName

The name requests are traced under: the aliased source client when one is used.

public string SourceName { get; }

Property Value

string