mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 06:56:31 +00:00
62623b7123
rewrite zmq to DEALER and ROUTER add GET_USER command to get CurrentUser from Python all auth is on the python side inference run and validate annotations on python
24 lines
514 B
C#
24 lines
514 B
C#
using MessagePack;
|
|
|
|
namespace Azaion.CommonSecurity.DTO.Commands;
|
|
|
|
[MessagePackObject]
|
|
public class RemoteCommand(CommandType commandType, string? filename = null, byte[]? data = null)
|
|
{
|
|
[Key("CommandType")]
|
|
public CommandType CommandType { get; set; } = commandType;
|
|
|
|
[Key("Filename")]
|
|
public string? Filename { get; set; } = filename;
|
|
|
|
[Key("Data")]
|
|
public byte[]? Data { get; set; } = data;
|
|
}
|
|
|
|
public enum CommandType
|
|
{
|
|
None = 0,
|
|
Inference = 1,
|
|
Load = 2,
|
|
GetUser = 3
|
|
} |