Configure xConnect transient fault handling during initialization
You can specify a retryer configuration when you initialize your xConnect clients independently, or when you initialize a new xConnect Client Configuration (XConnectClientConfiguration).
Specify a retryer configuration during xConnect client initialization
Specify a retryer configuration during xConnect client initialization
You can initialize the xConnect search, collection and configuration clients independently, by specifying a retry registry and a configured retryer name. The SearchWebApiClient, the CollectionWebApiClient, and the CollectionWebApiClient have overloads that accept IRetryRegistry and a configured retryerName.
To initialize the SearchWebApiClient with a retryer configuration, use the following code sample:
To initialize the CollectionWebApiClient with a retryer configuration, use the following code sample:
To initialize the ConfigureWebApiClient with a retryer configuration, use the following code sample:
Initialize the xConnect Client Configuration
Initialize the xConnect Client Configuration
The XConnectClientConfiguration object contains parameters that specify a retryer, and xConnect client URIs for search and collection services.
The following code sample shows how you can initialize the XConnectClientConfiguration with a retry strategy for the collection service and search service: