29 lines
892 B
C#
29 lines
892 B
C#
using JiShe.CollectBus.Protocol.Contracts.Abstracts;
|
|
using JiShe.CollectBus.Protocol.Contracts.Attributes;
|
|
using JiShe.CollectBus.Protocol.Contracts.DependencyInjection;
|
|
using JiShe.CollectBus.Protocol.Contracts.Models;
|
|
using Microsoft.Extensions.Caching.Distributed;
|
|
using TouchSocket.Sockets;
|
|
|
|
namespace JiShe.CollectBus.Protocol.Test
|
|
{
|
|
[ProtocolName("TestProtocol")]
|
|
public class TestProtocolPlugin(IDistributedCache cache) : BaseProtocolPlugin(cache), ISingletonDependency
|
|
{
|
|
public override ProtocolInfo Get()
|
|
{
|
|
return new ProtocolInfo("Test", "376.1", "TCP", "376.1协议", "DTSU1980");
|
|
}
|
|
|
|
public override void Received(ReceivedDataEventArgs e)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override void Send()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|