Skip to content
Documentation

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>

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>

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.

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; }

System.Type

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; }

System.Type

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; }

System.Type

© 2026 Volue.Version v0.6.38017 November 2026