Constructor HttpApiTool
HttpApiTool(HttpApiToolDefinition, WebEgressPolicy, HttpClient)
Initializes a new instance.
public HttpApiTool(HttpApiToolDefinition definition, WebEgressPolicy egress = null, HttpClient client = null)
Parameters
definitionHttpApiToolDefinitionThe operation to call.
egressWebEgressPolicyThe policy every call is checked against; null calls any http or https address.
clientHttpClientThe HTTP client calls go through; null connects only to the addresses the egress policy validated (or through a shared client when there is no policy), never following redirects.
Exceptions
- ArgumentNullException
Thrown when
definitionis null.- ArgumentException
Thrown when the definition is not valid; the message lists every fault.