Class ProtoHttpClientResolution
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
ClientHttpClientRequestedNamestringResolvedNamestringApplicationNamestringSourceClientNamestringEndpointResolverstringBaseAddressResolverFunc<ProtoExecutionContext, CancellationToken, ValueTask<Uri>>
Properties
ApplicationName
public string? ApplicationName { get; init; }
Property Value
BaseAddressResolver
public Func<ProtoExecutionContext, CancellationToken, ValueTask<Uri>>? BaseAddressResolver { get; init; }
Property Value
Client
public HttpClient Client { get; init; }
Property Value
EndpointResolver
public string EndpointResolver { get; init; }
Property Value
RequestedName
public string RequestedName { get; init; }
Property Value
ResolvedName
public string ResolvedName { get; init; }
Property Value
SourceClientName
public string? SourceClientName { get; init; }
Property Value
SourceName
The name requests are traced under: the aliased source client when one is used.
public string SourceName { get; }