33 lines
1.2 KiB
C#
Raw Permalink Normal View History

2025-04-25 14:42:11 +08:00
using JiShe.CollectBus.IotSystems.Protocols;
2025-04-27 09:16:37 +08:00
using JiShe.CollectBus.Protocol.Models;
using JiShe.CollectBus.Protocol.T37612012;
using Microsoft.Extensions.Logging;
using TouchSocket.Sockets;
2025-04-11 17:12:29 +08:00
namespace JiShe.CollectBus.Protocol.Test
{
2025-04-25 14:42:11 +08:00
public class TestProtocolPlugin : T37612012ProtocolPlugin
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>
2025-04-25 14:42:11 +08:00
public TestProtocolPlugin(IServiceProvider serviceProvider, ILogger<TestProtocolPlugin> logger, ITcpService tcpService) : base(serviceProvider, logger, tcpService)
2025-04-11 17:12:29 +08:00
{
}
2025-04-25 14:42:11 +08:00
public override ProtocolInfo Info => new(nameof(TestProtocolPlugin), "Test", "TCP", "Test协议", "DTS1980-TEST");
2025-04-11 17:12:29 +08:00
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();
}
2025-04-24 17:48:20 +08:00
2025-04-25 08:33:13 +08:00
public override Task<ProtocolBuildResponse> BuildAsync(ProtocolBuildRequest request)
2025-04-24 17:48:20 +08:00
{
throw new NotImplementedException();
}
2025-04-11 17:12:29 +08:00
}
}