Class DataFormatRegistrationExtensions
Registers a data format in the context's so it can be addressed
by content type: Marshal("text/csv"), Unmarshal<T>("text/csv"), and the
content-type-driven Unmarshal<T>() / ConvertBody<T>(). Format packages wrap this
in a named helper (AddCsvDataFormat()).
public static class DataFormatRegistrationExtensions
Inheritance
Methods
AddDataFormat(IRouteContext, IMessageSerializer, params string[])
Registers serializer under its , its and any extra content types.
public static IRouteContext AddDataFormat(this IRouteContext context, IMessageSerializer serializer, params string[] additionalContentTypes)
AddDataFormat(RedbRouteBuilder, IMessageSerializer, params string[])
DI form: the format is registered on the hosted context when it is built.
public static RedbRouteBuilder AddDataFormat(this RedbRouteBuilder builder, IMessageSerializer serializer, params string[] additionalContentTypes)