Class ConsumerEndpointBuilderConsumeBinaryFilesExtensions
Adds the ConsumeBinaryFiles
method to the
ConsumerEndpointBuilder<TEndpoint, TBuilder>.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.dll
Syntax
public static class ConsumerEndpointBuilderConsumeBinaryFilesExtensions
Methods
| Improve this doc View sourceConsumeBinaryFiles<TBuilder>(IConsumerEndpointBuilder<TBuilder>, Action<IBinaryFileMessageSerializerBuilder>?)
Sets the serializer to an instance of BinaryFileMessageSerializer (or BinaryFileMessageSerializer<TModel>) to wrap the consumed binary files into a BinaryFileMessage.
This settings will force the BinaryFileMessageSerializer to be used regardless of the message type header.
Declaration
public static TBuilder ConsumeBinaryFiles<TBuilder>(this IConsumerEndpointBuilder<TBuilder> endpointBuilder, Action<IBinaryFileMessageSerializerBuilder>? serializerBuilderAction = null) where TBuilder : IConsumerEndpointBuilder<TBuilder>
Parameters
Type | Name | Description |
---|---|---|
IConsumerEndpointBuilder<TBuilder> | endpointBuilder | The endpoint builder. |
Action<IBinaryFileMessageSerializerBuilder> | serializerBuilderAction | An optional Action<T> that takes the IBinaryFileMessageSerializerBuilder and configures it. |
Returns
Type | Description |
---|---|
TBuilder | The endpoint builder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TBuilder | The actual builder type. |
Remarks
This replaces the IMessageSerializer and the endpoint will only be able to deal with binary files.