Show / Hide Table of Contents

Interface ISerializationMonitor<T>

Provides a mechanism to listen in to important events during the serialization process.

Namespace: ExtendedXmlSerializer.ExtensionModel.Instances
Assembly: ExtendedXmlSerializer.dll
Syntax
public interface ISerializationMonitor<in T>
Type Parameters
T

The type to monitor.

Methods

OnActivated(T)

Called when an instance of the monitored type is activated/instantiated.

Declaration
void OnActivated(T instance)
Parameters
T instance

Instance that was activated.

OnActivating(IFormatReader, Type)

Called when a particular type is about to be activated/instantiated.

Declaration
void OnActivating(IFormatReader reader, Type instanceType)
Parameters
IFormatReader reader

The reader representing the source document.

System.Type instanceType

The identified type about to be activated.

OnDeserialized(IFormatReader, T)

Called when an instance has been fully deserialized.

Declaration
void OnDeserialized(IFormatReader reader, T instance)
Parameters
IFormatReader reader

The reader representing the source document.

T instance

The instance that was deserialized.

OnDeserializing(IFormatReader, Type)

Called when a reader is about to deserialize an identified type.

Declaration
void OnDeserializing(IFormatReader reader, Type instanceType)
Parameters
IFormatReader reader

The reader representing the source document.

System.Type instanceType

The identified type about to be deserialized.

OnSerialized(IFormatWriter, T)

Called when an instance is serialized.

Declaration
void OnSerialized(IFormatWriter writer, T instance)
Parameters
IFormatWriter writer

The writer performing the writing to the destination.

T instance

The instance that was serialized.

OnSerializing(IFormatWriter, T)

Called when an instance is about to be serialized.

Declaration
void OnSerializing(IFormatWriter writer, T instance)
Parameters
IFormatWriter writer

The writer performing the writing to the destination.

T instance

The instance about to be serialized.

Extension Methods

ExtensionMethods.Return<T, TOut>(T, TOut)
ExtensionMethods.To<T>(Object)
ExtensionMethods.AsValid<T>(Object, String)
ExtensionMethodsForAttachedProperties.Get<TType, TValue>(TType, Property<TType, TValue>)
ExtensionMethodsForAttachedProperties.Set<TType, TValue>(TType, Property<TType, TValue>, TValue)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(TResult, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.Let<TSpecification, TInstance>(TInstance, ISpecification<TSpecification>, TInstance)

See Also

https://github.com/ExtendedXmlSerializer/home/issues/264#issuecomment-544104668
Back to top Generated by DocFX