JiShe.CollectBus/JiShe.CollectBus.Protocol/StandardProtocolPlugin.cs

35 lines
933 B
C#
Raw Normal View History

2024-09-30 17:53:14 +08:00
using JiShe.CollectBus.Protocol.Contracts.Abstracts;
2024-10-08 14:41:41 +08:00
using JiShe.CollectBus.Protocol.Contracts.Attributes;
2024-09-30 17:53:14 +08:00
using JiShe.CollectBus.Protocol.Contracts.DependencyInjection;
2024-10-08 14:41:41 +08:00
using JiShe.CollectBus.Protocol.Contracts.Models;
2024-09-30 17:53:14 +08:00
using Microsoft.Extensions.Caching.Distributed;
2024-09-30 17:10:43 +08:00
namespace JiShe.CollectBus.Protocol
{
2024-10-08 14:41:41 +08:00
[ProtocolName("StandardProtocol")]
public class StandardProtocolPlugin(IDistributedCache cache) : BaseProtocolPlugin(cache), ISingletonDependency
2024-09-30 17:10:43 +08:00
{
2024-10-08 14:41:41 +08:00
public override ProtocolInfo Get()
2024-09-30 17:53:14 +08:00
{
2024-10-08 14:41:41 +08:00
return new ProtocolInfo("Standard", "376.1", "TCP","376.1协议","DTS1980");
2024-09-30 17:10:43 +08:00
}
2024-10-11 11:27:57 +08:00
public new void Load()
2024-09-30 17:10:43 +08:00
{
2024-09-30 17:53:14 +08:00
base.Load();
2024-09-30 17:10:43 +08:00
}
2024-09-30 17:53:14 +08:00
public override void Received()
2024-09-30 17:10:43 +08:00
{
throw new NotImplementedException();
}
2024-09-30 17:53:14 +08:00
public override void Send()
2024-09-30 17:10:43 +08:00
{
throw new NotImplementedException();
}
2024-09-30 17:53:14 +08:00
2024-09-30 17:10:43 +08:00
}
}