first iteration

This commit is contained in:
JanEggers
2018-06-16 17:20:00 +02:00
parent caea7910b4
commit c758ae89f4
7 changed files with 313 additions and 4 deletions
@@ -30,7 +30,8 @@ namespace MQTTnet.AspNetCore
if (options.DefaultEndpointOptions.IsEnabled)
{
services.AddSingleton<IMqttServerAdapter>(s => s.GetService<MqttTcpServerAdapter>());
services.AddSingleton<MqttConnectionHandler>();
services.AddSingleton<IMqttServerAdapter>(s => s.GetService<MqttConnectionHandler>());
}
return services;