Interface IMqttClientFactory

Assembly: redb.Route.MqttNet.dll

Creates and manages instances.

public interface IMqttClientFactory

Methods

CreateConnectedClientAsync(MqttBrokerOptions, string?, CancellationToken)

Creates a connected MQTT client from broker options.

Task<IMqttClient> CreateConnectedClientAsync(MqttBrokerOptions options, string? clientIdOverride = null, CancellationToken ct = default)