BulkHandlerAttribute<THandler,TResult> Class
Marks an HTTP action method as supporting bulk execution via a dedicated IBulkHandler<TResult> implementation.
public sealed class BulkHandlerAttribute<THandler,TResult> : System.Attribute where THandler : HAKOM.Automation.Http.Net.Api.Bulk.IBulkHandler<TResult>Type parameters
Section titled “Type parameters”THandler
The IBulkHandler<TResult> implementation to use for bulk processing. This type must be registered in the dependency injection container.
TResult
The type of the value returned per item on success.
Inheritance System.Object 🡒 System.Attribute 🡒 BulkHandlerAttribute<THandler,TResult>
Remarks
Section titled “Remarks”Apply this attribute to GET or DELETE action methods (i.e. those that do not
have a typed request body). When the POST /automation/bulk endpoint routes to this
action it will resolve THandler from the dependency injection container
and delegate the entire bulk to it, rather than invoking the action individually per item.
For actions that accept a typed request body (POST / PUT) use
BulkHandlerAttribute<THandler,TBody,TResult> instead.
Properties
Section titled “Properties”BulkHandlerAttribute<THandler,TResult>.HandlerType Property
Section titled “BulkHandlerAttribute<THandler,TResult>.HandlerType Property”Gets the System.Type of the IBulkHandler<TResult> to use for processing the bulk.
public System.Type HandlerType { get; }Property Value
Section titled “Property Value”BulkHandlerAttribute<THandler,TResult>.ResultType Property
Section titled “BulkHandlerAttribute<THandler,TResult>.ResultType Property”Gets the System.Type of the result value produced per item on success.
public System.Type ResultType { get; }