Refactor options and add options builder

This commit is contained in:
Christian Kratky
2017-10-25 22:33:07 +02:00
parent a9b394401b
commit a18c533603
27 changed files with 448 additions and 233 deletions
@@ -28,11 +28,14 @@ namespace MQTTnet.TestApp.NetCore
var options = new ManagedMqttClientOptions
{
ClientOptions = new MqttClientTcpOptions
ClientOptions = new MqttClientOptions
{
Server = "broker.hivemq.com",
ClientId = "MQTTnetManagedClientTest",
Credentials = new RandomPassword()
Credentials = new RandomPassword(),
ChannelOptions = new MqttClientTcpOptions
{
Server = "broker.hivemq.com"
}
},
AutoReconnectDelay = TimeSpan.FromSeconds(1),