Skip to content
Documentation

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>

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>

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.

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

System.Type

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

System.Type

© 2026 Volue.Version v0.6.38017 November 2026