Show / Hide Table of Contents

    Interface IMqttConsumerEndpointBuilder

    Builds the MqttConsumerEndpoint.

    Inherited Members
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.DeserializeUsing(IMessageSerializer)
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.Decrypt(EncryptionSettings)
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.OnError(IErrorPolicy)
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.OnError(Action<IErrorPolicyBuilder>)
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.EnsureExactlyOnce(IExactlyOnceStrategy)
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.EnsureExactlyOnce(Action<IExactlyOnceStrategyBuilder>)
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.EnableBatchProcessing(int, TimeSpan?)
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.WithSequenceTimeout(TimeSpan)
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.ThrowIfUnhandled()
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.IgnoreUnhandledMessages()
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.HandleTombstoneMessages()
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.SkipNullMessages()
    IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>.UseLegacyNullMessageHandling()
    IEndpointBuilder<IMqttConsumerEndpointBuilder>.MessageType
    IEndpointBuilder<IMqttConsumerEndpointBuilder>.WithName(string)
    IEndpointBuilder<IMqttConsumerEndpointBuilder>.UseSerializer(IMessageSerializer)
    IEndpointBuilder<IMqttConsumerEndpointBuilder>.WithEncryption(EncryptionSettings)
    IEndpointBuilder<IMqttConsumerEndpointBuilder>.ValidateMessage(bool)
    IEndpointBuilder<IMqttConsumerEndpointBuilder>.DisableMessageValidation()
    Namespace: Silverback.Messaging.Configuration.Mqtt
    Assembly: Silverback.Integration.MQTT.dll
    Syntax
    public interface IMqttConsumerEndpointBuilder : IConsumerEndpointBuilder<IMqttConsumerEndpointBuilder>, IEndpointBuilder<IMqttConsumerEndpointBuilder>

    Methods

    | Improve this doc View source

    Configure(Action<IMqttClientConfigBuilder>)

    Configures the MQTT client properties.

    Declaration
    IMqttConsumerEndpointBuilder Configure(Action<IMqttClientConfigBuilder> configBuilderAction)
    Parameters
    Type Name Description
    Action<IMqttClientConfigBuilder> configBuilderAction

    An Action<T> that takes the IMqttClientConfigBuilder and configures it.

    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    Configure(Action<MqttClientConfig>)

    Configures the MQTT client properties.

    Declaration
    IMqttConsumerEndpointBuilder Configure(Action<MqttClientConfig> configAction)
    Parameters
    Type Name Description
    Action<MqttClientConfig> configAction

    An Action<T> that takes the MqttClientConfig and configures it.

    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    ConsumeFrom(params string[])

    Specifies the name of the topics or the topic filter strings.

    Declaration
    IMqttConsumerEndpointBuilder ConsumeFrom(params string[] topics)
    Parameters
    Type Name Description
    string[] topics

    The name of the topics or the topic filter string.

    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    DisableParallelProcessing()

    Disables parallel messages processing, setting the max degree of parallelism to 1 (default).

    Declaration
    IMqttConsumerEndpointBuilder DisableParallelProcessing()
    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    EnableParallelProcessing(int)

    Enables parallel processing and sets the maximum number of incoming message that can be processed concurrently.

    Declaration
    IMqttConsumerEndpointBuilder EnableParallelProcessing(int maxDegreeOfParallelism)
    Parameters
    Type Name Description
    int maxDegreeOfParallelism

    The maximum number of incoming message that can be processed concurrently.

    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    LimitBackpressure(int)

    Sets the maximum number of messages to be consumed and enqueued waiting to be processed. The default limit is 1.

    Declaration
    IMqttConsumerEndpointBuilder LimitBackpressure(int backpressureLimit)
    Parameters
    Type Name Description
    int backpressureLimit

    The maximum number of messages to be enqueued.

    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    WithAtLeastOnceQoS()

    Specifies that the topics have to be subscribed with the at least once quality of service level.

    Declaration
    IMqttConsumerEndpointBuilder WithAtLeastOnceQoS()
    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    WithAtMostOnceQoS()

    Specifies that the topics have to be subscribed with the at most once quality of service level.

    Declaration
    IMqttConsumerEndpointBuilder WithAtMostOnceQoS()
    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    WithExactlyOnceQoS()

    Specifies that the topics have to be subscribed with the exactly once quality of service level.

    Declaration
    IMqttConsumerEndpointBuilder WithExactlyOnceQoS()
    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    | Improve this doc View source

    WithQualityOfServiceLevel(MqttQualityOfServiceLevel)

    Specifies the desired quality of service level.

    Declaration
    IMqttConsumerEndpointBuilder WithQualityOfServiceLevel(MqttQualityOfServiceLevel qosLevel)
    Parameters
    Type Name Description
    MqttQualityOfServiceLevel qosLevel

    The MQTTnet.Protocol.MqttQualityOfServiceLevel.

    Returns
    Type Description
    IMqttConsumerEndpointBuilder

    The IMqttConsumerEndpointBuilder so that additional calls can be chained.

    Extension Methods

    ConsumerEndpointBuilderConsumeBinaryFilesExtensions.ConsumeBinaryFiles<TBuilder>(IConsumerEndpointBuilder<TBuilder>, Action<IBinaryFileMessageSerializerBuilder>?)
    ConsumerEndpointBuilderDecryptUsingExtensions.DecryptUsingAes<TBuilder>(IConsumerEndpointBuilder<TBuilder>, byte[], byte[]?)
    ConsumerEndpointBuilderDecryptUsingExtensions.DecryptUsingAes<TBuilder>(IConsumerEndpointBuilder<TBuilder>, Func<string?, byte[]>, byte[]?)
    ConsumerEndpointBuilderDeserializeJsonExtensions.DeserializeJson<TBuilder>(IConsumerEndpointBuilder<TBuilder>, Action<IJsonMessageSerializerBuilder>?)
    ConsumerEndpointBuilderDeserializeJsonUsingNewtonsoftExtensions.DeserializeJsonUsingNewtonsoft<TBuilder>(IConsumerEndpointBuilder<TBuilder>, Action<INewtonsoftJsonMessageSerializerBuilder>?)
    • Improve this doc
    • View source
    In this article
    • Methods
      • Configure(Action<IMqttClientConfigBuilder>)
      • Configure(Action<MqttClientConfig>)
      • ConsumeFrom(params string[])
      • DisableParallelProcessing()
      • EnableParallelProcessing(int)
      • LimitBackpressure(int)
      • WithAtLeastOnceQoS()
      • WithAtMostOnceQoS()
      • WithExactlyOnceQoS()
      • WithQualityOfServiceLevel(MqttQualityOfServiceLevel)
    • Extension Methods
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini