2024-09-30 17:53:14 +08:00
|
|
|
|
using JiShe.CollectBus.Protocol.Contracts.Abstracts;
|
|
|
|
|
|
using JiShe.CollectBus.Protocol.Contracts.DependencyInjection;
|
|
|
|
|
|
using Microsoft.Extensions.Caching.Distributed;
|
2024-09-30 17:10:43 +08:00
|
|
|
|
|
|
|
|
|
|
namespace JiShe.CollectBus.Protocol
|
|
|
|
|
|
{
|
2024-09-30 17:53:14 +08:00
|
|
|
|
public class StandardProtocolPlugin : BaseProtocolPlugin, IStandardProtocolPlugin,ISingletonDependency
|
2024-09-30 17:10:43 +08:00
|
|
|
|
{
|
2024-09-30 17:53:14 +08:00
|
|
|
|
public StandardProtocolPlugin(IDistributedCache cache) : base(cache)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override Contracts.Models.Protocol Get()
|
2024-09-30 17:10:43 +08:00
|
|
|
|
{
|
|
|
|
|
|
return new Contracts.Models.Protocol("Standard", "376.1", "TCP","376.1协议","DTS1980");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void Load()
|
|
|
|
|
|
{
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|