Skip to content
Documentation

HAKOM.Serialization.Http.Net.Api.Extensions Namespace

Provides extension methods for integrating HAKOM serialization with the ASP.NET Core pipeline, including MvcOptionsExtensions for registering formatters and model binders, HttpContextExtensions for storing/retrieving serializers on the request context, and helper extensions for input/output formatter contexts.

Use AddHakomFormatters(this MvcOptions, bool) and AddHakomModelBinders(this MvcOptions) to configure the MVC pipeline:

services.AddControllers(options =>
{
options.AddHakomFormatters();
options.AddHakomModelBinders();
});
Classes
HttpContextExtensions Provides extension methods for Microsoft.AspNetCore.Http.HttpContext related to serialization and query parameter binding.
InputFormatterContextExtensions Provides extension methods for Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext related to serializer resolution and request body reading.
ModelBindingContextExtensions Provides extension methods for Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext related to tracking bound query parameters.
MvcOptionsExtensions Allows using HAKOM formatters with the Microsoft.AspNetCore.Mvc framework.
OutputFormatterCanWriteContextExtensions Provides extension methods for Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext related to serializer resolution.
OutputFormatterWriteContextExtensions Provides extension methods for Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext related to response serialization.
© 2026 Volue.Version v0.6.38017 November 2026