C# Class NServiceBus.SerializationContextExtensions

Allows users to control serialization.
Show file Open project: Particular/NServiceBus

Public Methods

Method 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 method

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

SkipSerialization() public static method

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
return void