Skip to content
Documentation

HAKOM.Serialization.Http.Net Assembly

Provides the ASP.NET Core integration layer for the HAKOM serialization infrastructure, enabling automatic content negotiation, request body deserialization, and response serialization using ISerializer<TData> implementations.

This assembly contains MVC input/output formatters, custom model binders, and extension methods that bridge the gap between the core serialization library (HAKOM.Serialization.Core.Net) and the ASP.NET Core MVC pipeline.

Adding HAKOM formatters to MVC:
services.AddControllers(options =>
{
options.AddHakomFormatters();
options.AddHakomModelBinders();
});
Binding query parameters to complex models:
public IActionResult Search(
[FromPrefixedQuery("filter")] MySearchParameters parameters)
{
// parameters are bound from query string keys like ?filter.name=value
}
Namespaces
HAKOM.Serialization.Http.Net.Api Contains the public API surface for HTTP serialization integration, including custom model binders (ICustomModelBinder, CustomModelFromBodyBinder<TModel>, CustomModelFromQueryBinder<TModel>, CustomModelFromRouteBinder<TModel>, StructModelBinder<TModel>), the FromPrefixedQueryAttribute for prefixed query parameter binding, PrefixedQueryBindingSource for custom binding source metadata, and QueryParameter for describing query parameters in API documentation.
HAKOM.Serialization.Http.Net.Api.Extensions 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.
© 2026 Volue.Version v0.6.38017 November 2026