Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- using MQTTnet.Core.Adapter;
- using MQTTnet.Core.Channel;
- using MQTTnet.Core.Client;
-
- namespace MQTTnet.Core.Tests
- {
- public class MqttCommunicationAdapterFactory : IMqttCommunicationAdapterFactory
- {
- private readonly IMqttCommunicationAdapter _adapter;
-
- public MqttCommunicationAdapterFactory(IMqttCommunicationAdapter adapter)
- {
- _adapter = adapter;
- }
-
- public IMqttCommunicationAdapter CreateClientMqttCommunicationAdapter(IMqttClientOptions options)
- {
- return _adapter;
- }
-
- public IMqttCommunicationAdapter CreateServerMqttCommunicationAdapter(IMqttCommunicationChannel channel)
- {
- return _adapter;
- }
- }
- }
|