AddExceptionDescriptorConverterOf Method
Definition
- Namespace
- Cuemon.Extensions.Text.Json.Converters
- Assemblies
- Cuemon.Extensions.Text.Json.dll
AddExceptionDescriptorConverterOf<T>(ICollection<JsonConverter>, Action<ExceptionDescriptorOptions>, Utf8JsonWriterAction<T>, Utf8JsonWriterAction<T>)
Adds an ExceptionDescriptor JSON converter to the list.
public static ICollection<JsonConverter> AddExceptionDescriptorConverterOf<T>(this ICollection<JsonConverter> converters, Action<ExceptionDescriptorOptions> setup = null, Utf8JsonWriterAction<T> afterWriteErrorStartObject = null, Utf8JsonWriterAction<T> beforeWriteEndObject = null) where T : ExceptionDescriptor
Parameters
convertersICollection<JsonConverter>The ICollection<T> to extend.
setupAction<ExceptionDescriptorOptions>The ExceptionDescriptorOptions which may be configured.
afterWriteErrorStartObjectUtf8JsonWriterAction<T>The delegate that is invoked just after writing JSON start object (
Error).beforeWriteEndObjectUtf8JsonWriterAction<T>The delegate that is invoked just before writing the JSON end object.
Returns
- ICollection<JsonConverter>
A reference to
convertersafter the operation has completed.
Type Parameters
T