Class ProtoHttpClientResolver
Resolves the HTTP client a protocol accessor uses for the current test, shared by the HTTP-based protocols so their registration and alias lookup, in-process transport fallback, and error text stay identical.
public static class ProtoHttpClientResolver
- Inheritance
-
ProtoHttpClientResolver
- Inherited Members
Methods
Resolve(ProtoExecutionContext, string, string?, string?)
Returns the HTTP client for protocolName: an explicit
clientName (qualified with the application, then unqualified), then the
application's bound client, then its first registered client, then "Default". When the client
has no base address and no per-test resolver or alias owns it, the application's in-process
transport serves it, rooted at the endpoint the client registered, then
defaultEndpointName, then the requested client.
public static ProtoHttpClientResolution Resolve(ProtoExecutionContext context, string protocolName, string? clientName = null, string? defaultEndpointName = null)
Parameters
contextProtoExecutionContextprotocolNamestringclientNamestringdefaultEndpointNamestring