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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* 版权所有 (c) 2025 WenJY 保留所有权利。
* CLR版本: 4.0.30319.42000
* 机器名称: Mr.Wen's MacBook Pro
* 命名空间: Sln.Iot.Business
* 唯一标识: AF7CD4B2-87AF-4F91-BECA-13779B05170C
*
* 创建者: WenJY
* 电子邮箱:
* 创建时间: 2025-04-11 16:04:07
* 版本: V1.0.0
* 描述:
*
*--------------------------------------------------------------------
* 修改人:
* 时间:
* 修改说明:
*
* 版本: V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Sln.Iot.Business.@base ;
using Sln.Iot.Common ;
using Sln.Iot.Config ;
using Sln.Iot.Model.dto ;
using Sln.Iot.Serilog ;
using Sln.Iot.Socket.Adapter ;
using TouchSocket.Core ;
using TouchSocket.Sockets ;
namespace Sln.Iot.Business
{
/// <summary>
/// 心跳指令
/// </summary>
public class HeartBusiness : BaseBusiness
{
public HeartBusiness ( SerilogHelper logger , AppConfig appConfig , StringChange stringChange ) : base ( logger , appConfig , stringChange )
{
}
public override FilterResult BufferAnalysis ( ISocketClient client , BufferRequestInfo requestInfo , int bodyLength )
{
//心跳没有业务逻辑处理
return FilterResult . Success ;
}
/// <summary>
/// 应答处理
/// </summary>
/// <param name="client"></param>
/// <param name="buffer"></param>
public override void ResponseHandle ( ISocketClient client , BufferRequestInfo requestInfo )
{
MessagePack SendMessagePackInfo = new MessagePack ( )
{
//m_MessageType = 0xA4
} ;
base . GetMessagePack ( ref SendMessagePackInfo , requestInfo . buffer ) ;
base . SendMessageAsync ( client , SendMessagePackInfo ) ;
}
}
}