在 AiVideo 中能看到图像
增加了在线状态同步逻辑
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using MessagePack;
|
||||
using SHH.CameraDashboard;
|
||||
using SHH.CameraDashboard.Services;
|
||||
using SHH.Contracts;
|
||||
|
||||
public class CommandResultProcessor : IProtocolProcessor
|
||||
{
|
||||
public string ProtocolType => "COMMAND_RESULT";
|
||||
private readonly CommandBusClient _bus;
|
||||
public CommandResultProcessor(CommandBusClient bus) => _bus = bus;
|
||||
|
||||
public void Process(byte[] identity, byte[] payloadBytes)
|
||||
{
|
||||
var p = MessagePackSerializer.Deserialize<CommandResult>(payloadBytes);
|
||||
_bus.HandleResponse(p);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user