IBulkHandler<TBody,TResult> Interface
Defines the contract for a handler that processes a bulk of items for an HTTP endpoint that
accepts a typed request body (e.g. POST or PUT).
public interface IBulkHandler<TBody,TResult>Type parameters
Section titled “Type parameters”TBody
The type of the per-item request body.
TResult
The type of value produced per item on success.
Remarks
Section titled “Remarks”Implement this interface to provide optimised bulk processing for a specific endpoint that also receives a per-item request body: register the implementation with the dependency injection container and annotate the target action with BulkHandlerAttribute<THandler,TBody,TResult>.
Methods
Section titled “Methods”IBulkHandler<TBody,TResult>.Handle(IEnumerable<(string Identifier,IReadOnlyDictionary<string,object> RouteParameters,IReadOnlyDictionary<string,IReadOnlyList<string>> QueryParameters,TBody Body)>, CancellationToken) Method
Section titled “IBulkHandler<TBody,TResult>.Handle(IEnumerable<(string Identifier,IReadOnlyDictionary<string,object> RouteParameters,IReadOnlyDictionary<string,IReadOnlyList<string>> QueryParameters,TBody Body)>, CancellationToken) Method”System.Collections.Generic.IAsyncEnumerable<HAKOM.Automation.Http.Net.Api.Bulk.IBulkResponse<TResult>> Handle(System.Collections.Generic.IEnumerable<(string? Identifier,System.Collections.Generic.IReadOnlyDictionary<string,object?> RouteParameters,System.Collections.Generic.IReadOnlyDictionary<string,System.Collections.Generic.IReadOnlyList<string>> QueryParameters,TBody Body)> items, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));Parameters
Section titled “Parameters”items System.Collections.Generic.IEnumerable<<System.String,System.Collections.Generic.IReadOnlyDictionary<System.String,System.Object>,System.Collections.Generic.IReadOnlyDictionary<System.String,System.Collections.Generic.IReadOnlyList<System.String>>,TBody>>
cancellationToken System.Threading.CancellationToken
Returns
Section titled “Returns”System.Collections.Generic.IAsyncEnumerable<HAKOM.Automation.Http.Net.Api.Bulk.IBulkResponse<TResult>>