.Net
Installation
Using the .NET Core command-line interface (CLI) tools:
Using the NuGet Command Line Interface (CLI):
Instantiation
Instantiate the SDK using the MercoaClient
class. Note that all
of the SDK methods are awaitable!
HTTP Client
You can override the HttpClient by passing in ClientOptions
.
Exception Handling
When the API returns a non-zero status code, (4xx or 5xx response), a subclass of MergeException will be thrown:
Retries
429 Rate Limit, and >=500 Internal errors will all be retried twice with exponential backoff. You can override this behavior globally or per-request.
Timeouts
The SDK defaults to a 60s timeout. You can override this behaviour globally or per-request.