Class ConsumerEndpointBuilderConsumeBinaryFilesExtensions
Adds the ConsumeBinaryFiles
method to the
ConsumerEndpointBuilder<TEndpoint, TBuilder>.
Inheritance
System.Object
ConsumerEndpointBuilderConsumeBinaryFilesExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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. |
System.Action<IBinaryFileMessageSerializerBuilder> | serializerBuilderAction | An optional System.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.