31 lines
1.2 KiB
C#
Raw Normal View History

2025-04-11 17:12:29 +08:00
using JiShe.CollectBus.Common.Enums;
using JiShe.CollectBus.Common.Extensions;
using JiShe.CollectBus.Common.Models;
using JiShe.CollectBus.IotSystems.MessageReceiveds;
using JiShe.CollectBus.IotSystems.Protocols;
using JiShe.CollectBus.Protocol.Contracts.Abstracts;
using Microsoft.Extensions.Logging;
using TouchSocket.Sockets;
2025-04-11 17:12:29 +08:00
namespace JiShe.CollectBus.Protocol.Test
{
public class TestProtocolPlugin : ProtocolPlugin
2025-04-11 17:12:29 +08:00
{
private readonly ILogger<TestProtocolPlugin> _logger;
2025-04-11 17:12:29 +08:00
/// <summary>
/// Initializes a new instance of the <see cref="TestProtocolPlugin"/> class.
/// </summary>
/// <param name="serviceProvider">The service provider.</param>
public TestProtocolPlugin(IServiceProvider serviceProvider, ILogger<TestProtocolPlugin> logger) : base(serviceProvider, logger)
2025-04-11 17:12:29 +08:00
{
}
public sealed override ProtocolInfo Info => new(nameof(TestProtocolPlugin), "Test", "TCP", "Test协议", "DTS1980-Test");
public override Task<T> AnalyzeAsync<T>(ITcpSessionClient client, string messageReceived, Action<T>? receivedAction = null)
2025-04-11 17:12:29 +08:00
{
throw new NotImplementedException();
}
}
}