Class ProtoHttpClientResolver
Resolves the HTTP client a protocol accessor uses for the current test: the protocol's scoped client first, then a host- or user-registered client under the requested name, then a uniquely named client of the protocol from another application, then the application's in-process transport rooted at the endpoint the client registered.
public static class ProtoHttpClientResolver
- Inheritance
-
ProtoHttpClientResolver
- Inherited Members
Methods
Resolve(ProtoExecutionContext, string, string?)
Returns the HTTP client for protocolName: an explicit
clientName (qualified with the application, then unqualified; an already
qualified name is exact), then the application's bound client, then its first registered client,
then "Default". A bare name that misses resolves the one client of the protocol registered under
that unqualified name, whichever application owns it; several throw naming the qualified
candidates. When the client has no base address and no per-test resolver owns it, the winning
application's in-process transport serves it, rooted at the endpoint the client registered.
public static ProtoHttpClientResolution Resolve(ProtoExecutionContext context, string protocolName, string? clientName = null)
Parameters
contextProtoExecutionContextprotocolNamestringclientNamestring