Removed some %^&#ing $@#! comments. Gosh darnit.

This commit is contained in:
Zazzmatazz
2017-06-02 16:22:37 -04:00
parent 5c1eceb8a9
commit 8a65850f1a
3 changed files with 1 additions and 5 deletions
@@ -13,8 +13,6 @@ namespace MQTTnet
if (options == null) throw new ArgumentNullException(nameof(options));
return new MqttClient(options,
// The cast to IMqttCommunicationChannel is required... Roslyn is too stupid to
// figure out how to cast back to the base type
new MqttChannelCommunicationAdapter(options.UseSSL ? new MqttClientSslChannel() : (IMqttCommunicationChannel) new MqttTcpChannel(),
new DefaultMqttV311PacketSerializer()));
}
@@ -10,7 +10,6 @@ namespace MQTTnet
{
if (options == null) throw new ArgumentNullException(nameof(options));
// The cast to IMqttServerAdapter is required... stupidly...
return new MqttServer(options, options.UseSSL ? (IMqttServerAdapter)new MqttSslServerAdapter() : new MqttServerAdapter());
}
}
@@ -10,7 +10,6 @@ namespace MQTTnet
{
if (options == null) throw new ArgumentNullException(nameof(options));
// The cast to IMqttServerAdapter is required... stupidly...
return new MqttServer(options, options.UseSSL ? (IMqttServerAdapter) new MqttSslServerAdapter() : new MqttServerAdapter());
}
}