Share via


IConverterObserver Interface

Definition

Caution

Deprecated in favor of IJsonLoadObserver.

Observer for Newtonsoft.Json.JsonConverter instances. Handles notifications around the object loading lifecycle, including the ability to intercept and provide alternate values to be considered by the converters.

[System.Obsolete("Deprecated in favor of IJsonLoadObserver.")]
public interface IConverterObserver
[<System.Obsolete("Deprecated in favor of IJsonLoadObserver.")>]
type IConverterObserver = interface
Public Interface IConverterObserver
Attributes

Methods

OnAfterLoadToken<T>(JToken, T, T)

Notifies IConverterObserver instances after type-loading a Newtonsoft.Json.Linq.JToken into the provided instance of T.

OnBeforeLoadToken<T>(JToken, T)

Notifies IConverterObserver instances before type-loading a Newtonsoft.Json.Linq.JToken.

Applies to