Show / Hide Table of Contents

    Class ConsumerEndpointBuilderConsumeBinaryFilesExtensions

    Adds the ConsumeBinaryFiles method to the ConsumerEndpointBuilder<TEndpoint, TBuilder>.

    Inheritance
    object
    ConsumerEndpointBuilderConsumeBinaryFilesExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Configuration
    Assembly: Silverback.Integration.dll
    Syntax
    public static class ConsumerEndpointBuilderConsumeBinaryFilesExtensions

    Methods

    | Improve this doc View source

    ConsumeBinaryFiles<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.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini