IBulkHandler<TResult> Interface
Defines the contract for a handler that processes a bulk of items for an HTTP endpoint that
does not require a request body (e.g. GET or DELETE).
public interface IBulkHandler<TResult>Type parameters
Section titled “Type parameters”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: register the implementation with the dependency injection container and annotate the target action with BulkHandlerAttribute<THandler,TResult>.
Methods
Section titled “Methods”IBulkHandler<TResult>.Handle(IEnumerable<(string Identifier,IReadOnlyDictionary<string,object> RouteParameters,IReadOnlyDictionary<string,IReadOnlyList<string>> QueryParameters)>, CancellationToken) Method
Section titled “IBulkHandler<TResult>.Handle(IEnumerable<(string Identifier,IReadOnlyDictionary<string,object> RouteParameters,IReadOnlyDictionary<string,IReadOnlyList<string>> QueryParameters)>, 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)> 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>>>>
cancellationToken System.Threading.CancellationToken
Returns
Section titled “Returns”System.Collections.Generic.IAsyncEnumerable<HAKOM.Automation.Http.Net.Api.Bulk.IBulkResponse<TResult>>