Files
DMS/DMS.Infrastructure/Interfaces/Services/IMqttServiceFactory.cs

23 lines
676 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using DMS.Core.Models;
namespace DMS.Infrastructure.Interfaces.Services
{
/// <summary>
/// MQTT服务工厂接口用于创建MQTT服务实例
/// </summary>
public interface IMqttServiceFactory
{
/// <summary>
/// 创建MQTT服务实例
/// </summary>
/// <returns>IMqttService实例</returns>
IMqttService CreateService();
/// <summary>
/// 根据MQTT服务器配置创建MQTT服务实例
/// </summary>
/// <param name="mqttServer">MQTT服务器配置</param>
/// <returns>IMqttService实例</returns>
IMqttService CreateService(MqttServer mqttServer);
}
}