C# Class NServiceBus.SerializationContextExtensions

Allows users to control serialization.
Afficher le fichier Open project: Particular/NServiceBus

Méthodes publiques

Méthode Description
ShouldSkipSerialization ( this context ) : bool

The serializer should skip serializing the message.

SkipSerialization ( this context ) : void

Requests the serializer to skip serializing the message.

This can be used by an extension point needs to take control of the serialization. For example the Callbacks implementation that skips serialization and instead uses headers for passing the enum or int value.

Method Details

ShouldSkipSerialization() public static méthode

The serializer should skip serializing the message.
public static ShouldSkipSerialization ( this context ) : bool
context this
Résultat bool

SkipSerialization() public static méthode

Requests the serializer to skip serializing the message.
This can be used by an extension point needs to take control of the serialization. For example the Callbacks implementation that skips serialization and instead uses headers for passing the enum or int value.
public static SkipSerialization ( this context ) : void
context this
Résultat void