修改退出时关闭所有服务和连接

This commit is contained in:
2025-09-06 19:59:21 +08:00
parent 6f0e80e1e2
commit be16e1a5d7
4 changed files with 73 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ namespace DMS.Infrastructure.Interfaces.Services
/// <summary>
/// MQTT后台服务接口负责管理MQTT连接和数据传输
/// </summary>
public interface IMqttBackgroundService
public interface IMqttBackgroundService : IDisposable
{
/// <summary>
/// 启动MQTT后台服务