将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。

This commit is contained in:
QI Mingxuan
2026-04-16 17:31:13 +08:00
parent 6ec4c3ddaa
commit 2bd6e566c3
581 changed files with 74600 additions and 222 deletions
@@ -0,0 +1,27 @@
using System.Collections.Generic;
using XP.Hardware.Detector.Abstractions;
using XP.Hardware.Detector.Abstractions.Enums;
using XP.Hardware.Detector.Config;
namespace XP.Hardware.Detector.Factories
{
/// <summary>
/// 探测器工厂接口 | Detector factory interface
/// 根据配置创建探测器实例
/// </summary>
public interface IDetectorFactory
{
/// <summary>
/// 创建探测器实例 | Create detector instance
/// </summary>
/// <param name="config">探测器配置 | Detector configuration</param>
/// <returns>探测器实例或错误结果 | Detector instance or error result</returns>
DetectorResult<IAreaDetector> CreateDetector(DetectorConfig config);
/// <summary>
/// 获取支持的探测器类型 | Get supported detector types
/// </summary>
/// <returns>支持的类型列表 | List of supported types</returns>
IEnumerable<DetectorType> GetSupportedTypes();
}
}