ArangoDB-Community / arangodb-net-standard

A consistent, comprehensive, minimal interface to enable .NET applications to use the complete range of features exposed by the ArangoDB REST API.
Apache License 2.0
76 stars 30 forks source link

Provide access to HttpApiTransport._client #455

Open tjoubert opened 1 year ago

tjoubert commented 1 year ago

Expose a readonly getter for HttpClient on HttpApiTransport (e.g. InnerClient) to allow callers to use the static creation methods for convenience, and then set a few options on the client themselves. Example:

var transport = HttpApiTransport.UsingBasicAuth(/*...*/);
transport.InnerClient.Timeout = TimeSpan.FromMinutes(2);