Show / Hide Table of Contents

    Class SilverbackBuilderUseMockedMqttExtensions

    Adds the UseMockedMqtt method to the ISilverbackBuilder.

    Inheritance
    object
    SilverbackBuilderUseMockedMqttExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Microsoft.Extensions.DependencyInjection
    Assembly: Silverback.Integration.MQTT.Testing.dll
    Syntax
    public static class SilverbackBuilderUseMockedMqttExtensions

    Methods

    | Improve this doc View source

    UseMockedMqtt(ISilverbackBuilder, Action<IMockedMqttOptionsBuilder>?)

    Replaces the MQTT connectivity based on MQTTnet with a mocked in-memory message broker that more or less replicates the MQTT broker behavior.

    Declaration
    public static ISilverbackBuilder UseMockedMqtt(this ISilverbackBuilder builder, Action<IMockedMqttOptionsBuilder>? optionsAction = null)
    Parameters
    Type Name Description
    ISilverbackBuilder builder

    The ISilverbackBuilder.

    Action<IMockedMqttOptionsBuilder> optionsAction

    Configures the mock options.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

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