Table of Contents

Enum JsonMessageDeserializerTypeHeaderBehavior

Namespace
Silverback.Messaging.Serialization
Assembly
Silverback.Integration.dll

Specifies how the IMessageDeserializer has to deserialize according to the message type header.

public enum JsonMessageDeserializerTypeHeaderBehavior

Fields

Ignore = 2

Ignore the type header and deserialize according to the configured message type.

Mandatory = 1

Throw an exception if the consumed message doesn't specify the message type header.

Optional = 0

Use the message type header if specified, otherwise use the configured message type.