1010using I8Beef . Ecobee . Protocol . Functions ;
1111using I8Beef . Ecobee . Protocol . Objects ;
1212using I8Beef . Ecobee . Protocol . Thermostat ;
13+ using Microsoft . Extensions . Hosting ;
1314using Microsoft . Extensions . Logging ;
1415using MQTTnet ;
1516
@@ -35,6 +36,7 @@ public class EcobeeMqttService : ServiceBase
3536 /// <summary>
3637 /// Initializes a new instance of the <see cref="EcobeeMqttService"/> class.
3738 /// </summary>
39+ /// <param name="applicationLifetime">Application lifetime instance.</param>
3840 /// <param name="logger">Logging instance.</param>
3941 /// <param name="ecobeeClient">The Ecobee client.</param>
4042 /// <param name="ecobeeName">The target Ecobee name.</param>
@@ -43,8 +45,8 @@ public class EcobeeMqttService : ServiceBase
4345 /// <param name="brokerPort">MQTT broker port.</param>
4446 /// <param name="brokerUsername">MQTT broker username.</param>
4547 /// <param name="brokerPassword">MQTT broker password.</param>
46- public EcobeeMqttService ( ILogger < EcobeeMqttService > logger , Client ecobeeClient , string ecobeeName , int refreshInterval , string brokerIp , int brokerPort = 1883 , string brokerUsername = null , string brokerPassword = null )
47- : base ( logger , brokerIp , brokerPort , brokerUsername , brokerPassword , "ecobee/" + ecobeeName )
48+ public EcobeeMqttService ( IApplicationLifetime applicationLifetime , ILogger < EcobeeMqttService > logger , Client ecobeeClient , string ecobeeName , int refreshInterval , string brokerIp , int brokerPort = 1883 , string brokerUsername = null , string brokerPassword = null )
49+ : base ( applicationLifetime , logger , brokerIp , brokerPort , brokerUsername , brokerPassword , "ecobee/" + ecobeeName )
4850 {
4951 _log = logger ;
5052 _refreshInterval = refreshInterval * 1000 ;
0 commit comments