Class ServiceCollectionUseMockedMqttExtensions
Adds the UseMockedMqtt
method to the Microsoft.Extensions.DependencyInjection.IServiceCollection.
Inheritance
System.Object
ServiceCollectionUseMockedMqttExtensions
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: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.MQTT.Testing.dll
Syntax
public static class ServiceCollectionUseMockedMqttExtensions
Methods
| Improve this doc View sourceUseMockedMqtt(IServiceCollection)
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 IServiceCollection UseMockedMqtt(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection to add the service to. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The Microsoft.Extensions.DependencyInjection.IServiceCollection so that additional calls can be chained. |