Ejemplo n.º 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MockedMqttClient" /> class.
 /// </summary>
 /// <param name="broker">
 ///     The <see cref="IInMemoryMqttBroker" />.
 /// </param>
 /// <param name="mockOptions">
 ///     The <see cref="IMockedMqttOptions" />.
 /// </param>
 public MockedMqttClient(IInMemoryMqttBroker broker, IMockedMqttOptions mockOptions)
 {
     _broker      = Check.NotNull(broker, nameof(broker));
     _mockOptions = Check.NotNull(mockOptions, nameof(mockOptions));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MockedMqttNetClientFactory" /> class.
 /// </summary>
 /// <param name="broker">
 ///     The <see cref="IInMemoryMqttBroker" />.
 /// </param>
 public MockedMqttNetClientFactory(IInMemoryMqttBroker broker)
 {
     _broker = Check.NotNull(broker, nameof(broker));
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MockedMqttNetClientFactory" /> class.
 /// </summary>
 /// <param name="broker">
 ///     The <see cref="IInMemoryMqttBroker" />.
 /// </param>
 /// <param name="options">
 ///     The <see cref="IMockedMqttOptions"/>.
 /// </param>
 public MockedMqttNetClientFactory(IInMemoryMqttBroker broker, IMockedMqttOptions options)
 {
     _broker  = Check.NotNull(broker, nameof(broker));
     _options = Check.NotNull(options, nameof(options));
 }