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