Class SilverbackBuilderUseMockedMqttExtensions
Adds the UseMockedMqtt method to the ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.MQTT.Testing.dll
Syntax
public static class SilverbackBuilderUseMockedMqttExtensions
Methods
| Improve this doc View sourceUseMockedMqtt(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. |