You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using MQTTnet.Core.Client;
- using MQTTnet.Implementations;
-
- namespace MQTTnet
- {
- public class MqttClientFactory : IMqttClientFactory
- {
- public IMqttClient CreateMqttClient(MqttClientOptions options)
- {
- if (options == null) throw new ArgumentNullException(nameof(options));
-
- return new MqttClient(new MqttCommunicationAdapterFactory());
- }
- }
- }
|