Definition
Assembly: CloudNimble.EasyAF.ODataClient.dll Namespace: CloudNimble.EasyAF.OData Inheritance: Simple.OData.Client.ODataBatchSyntax
Summary
Provides a pre-configured Simple.OData.V4ODataBatch Client.
Constructors
.ctor
Initializes a new instance of the Simple.OData.Client.ODataClient class with custom configurationSyntax
Parameters
| Name | Type | Description |
|---|---|---|
httpClientFactory | System.Net.Http.IHttpClientFactory | An IHttpClientFactory instance, provided by DI. |
configurationBase | CloudNimble.EasyAF.Configuration.ConfigurationBase | A ConfigurationBase instance, containing the name identifier for the HttpClient. |
apiClientName | string | Optional name for the API client. If not provided, uses the ApiClientName from the configuration. |
Methods
Add
Overloads the Add operator used to addIODataClient operations to the ODataBatch.
Provides an alternative method-based syntax for adding operations to the batch.
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
batch | CloudNimble.EasyAF.OData.ApiBatch | The ApiBatch instance to add the operation to. |
action | System.Func<Simple.OData.Client.IODataClient, System.Threading.Tasks.Task> | The async operation to add to the batch. |
Returns
Type:CloudNimble.EasyAF.OData.ApiBatch
The ApiBatch instance for method chaining.