Interface IJsonMessageSerializerBuilder
Builds the JsonMessageSerializer or JsonMessageSerializer<TMessage>.
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.dll
Syntax
public interface IJsonMessageSerializerBuilder
Methods
| Improve this doc View sourceUseFixedType(Type)
Specifies a fixed message type. This will prevent the message type header to be written when serializing and the header will be ignored when deserializing.
Declaration
IJsonMessageSerializerBuilder UseFixedType(Type messageType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | messageType | The type of the message to serialize or deserialize. |
Returns
| Type | Description |
|---|---|
| IJsonMessageSerializerBuilder | The JsonMessageSerializerBuilder so that additional calls can be chained. |
UseFixedType<TMessage>()
Specifies a fixed message type. This will prevent the message type header to be written when serializing and the header will be ignored when deserializing.
Declaration
IJsonMessageSerializerBuilder UseFixedType<TMessage>()
Returns
| Type | Description |
|---|---|
| IJsonMessageSerializerBuilder | The JsonMessageSerializerBuilder so that additional calls can be chained. |
Type Parameters
| Name | Description |
|---|---|
| TMessage | The type of the message to serialize or deserialize. |
WithOptions(JsonSerializerOptions)
Specifies the JsonSerializerOptions.
Declaration
IJsonMessageSerializerBuilder WithOptions(JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonSerializerOptions | options |
Returns
| Type | Description |
|---|---|
| IJsonMessageSerializerBuilder | The JsonMessageSerializerBuilder so that additional calls can be chained. |