MvcBuilderExtensions Class
Provides extension methods for adding the HAKOM Automation bulk API to an MVC-based HTTP service.
public static class MvcBuilderExtensionsInheritance System.Object 🡒 MvcBuilderExtensions
Methods
Section titled “Methods”MvcBuilderExtensions.AddAutomation(this IMvcBuilder) Method
Section titled “MvcBuilderExtensions.AddAutomation(this IMvcBuilder) Method”Adds the HAKOM Automation bulk API to the service, exposing the
POST /automation/bulk endpoint via BulkController.
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddAutomation(this Microsoft.Extensions.DependencyInjection.IMvcBuilder mvcBuilder);Parameters
Section titled “Parameters”mvcBuilder Microsoft.Extensions.DependencyInjection.IMvcBuilder
The Microsoft.Extensions.DependencyInjection.IMvcBuilder to add the automation API to.
Returns
Section titled “Returns”Microsoft.Extensions.DependencyInjection.IMvcBuilder
The mvcBuilder for chaining additional setup.
Remarks
Section titled “Remarks”After calling this method, clients can submit a JSON bulk request to
POST /automation/bulk. The endpoint will route each item to the matching
action and - if that action is annotated with a
BulkHandlerAttribute<THandler,TResult> or
BulkHandlerAttribute<THandler,TBody,TResult> - delegate
processing to the registered handler.
Bulk handlers that are referenced by BulkHandlerAttribute<THandler,TResult> or BulkHandlerAttribute<THandler,TBody,TResult> attributes must be registered separately in the dependency injection container before the first request is processed.