Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Core.dll Namespace: CloudNimble.EasyAF.Core.Converters Inheritance: System.Text.Json.Serialization.JsonConverterFactory

Syntax

Summary

The converter we create needs to know the exact type we’re converting, otherwise you would only get base object properties every time. Therefore it has to be generic. So the Factory creates the right Converter instance type for the object and sends it on its’ way. For more details, see Microsoft’s converter documentation.

Usage

IgnoreAuditFieldsJsonConverterFactory is obsolete as of EasyAF 5.0. Call IgnoreAuditFields() on your JsonSerializerOptions instead.
See IgnoreAuditFieldsJsonConverter for migration steps, and for the 5.0 output changes and how to restore the 4.x output.

Constructors

.ctor

Syntax

Methods

CanConvert Override

Syntax

Parameters

Returns

Type: bool

CreateConverter Override

Syntax

Parameters

Returns

Type: System.Text.Json.Serialization.JsonConverter