You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#region << 版 本 注 释 >>
|
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------
|
|
|
|
|
|
* 版权所有 (c) 2025 WenJY 保留所有权利。
|
|
|
|
|
|
* CLR版本:4.0.30319.42000
|
|
|
|
|
|
* 机器名称:Mr.Wen's MacBook Pro
|
|
|
|
|
|
* 命名空间:Sln.Iot.CFX.CoreCommunications
|
|
|
|
|
|
* 唯一标识:8E7C0E19-8462-42CA-AC22-F89BF2927C6A
|
|
|
|
|
|
*
|
|
|
|
|
|
* 创建者:WenJY
|
|
|
|
|
|
* 电子邮箱:
|
|
|
|
|
|
* 创建时间:2025-10-24 15:00:54
|
|
|
|
|
|
* 版本:V1.0.0
|
|
|
|
|
|
* 描述:
|
|
|
|
|
|
*
|
|
|
|
|
|
*--------------------------------------------------------------------
|
|
|
|
|
|
* 修改人:
|
|
|
|
|
|
* 时间:
|
|
|
|
|
|
* 修改说明:
|
|
|
|
|
|
*
|
|
|
|
|
|
* 版本:V1.0.0
|
|
|
|
|
|
*--------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
#endregion << 版 本 注 释 >>
|
|
|
|
|
|
|
|
|
|
|
|
using CFX;
|
|
|
|
|
|
using CFX.InformationSystem.UnitValidation;
|
|
|
|
|
|
using CFX.Structures;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sln.Iot.CFX.RequestReceived;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 5.4.1.5 - 广播查询请求
|
|
|
|
|
|
/// WhoIsThereRequest/Response
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class ValidateUnitsRequestReceived
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
|
/// <param name="response"></param>
|
|
|
|
|
|
public static void Handle(ValidateUnitsRequest request, out CFXMessage response)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
response = new ValidateUnitsResponse()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
|
{
|
|
|
|
|
|
//无法响应时上传NotSupportedResponse
|
|
|
|
|
|
response = new NotSupportedResponse()
|
|
|
|
|
|
{
|
|
|
|
|
|
RequestResult = new RequestResult()
|
|
|
|
|
|
{
|
|
|
|
|
|
Result = StatusResult.Failed,
|
|
|
|
|
|
ResultCode = 0,
|
|
|
|
|
|
Message = e.Message
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|