mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:36:31 +00:00
stop inference on stop pressed
small fixes
This commit is contained in:
@@ -11,11 +11,11 @@ public class RemoteCommand(CommandType commandType, byte[]? data = null)
|
||||
[Key("Data")]
|
||||
public byte[]? Data { get; set; } = data;
|
||||
|
||||
public static RemoteCommand Create<T>(CommandType commandType, T data) where T : class
|
||||
{
|
||||
var dataBytes = MessagePackSerializer.Serialize(data);
|
||||
return new RemoteCommand(commandType, dataBytes);
|
||||
}
|
||||
public static RemoteCommand Create(CommandType commandType) =>
|
||||
new(commandType);
|
||||
|
||||
public static RemoteCommand Create<T>(CommandType commandType, T data) where T : class =>
|
||||
new(commandType, MessagePackSerializer.Serialize(data));
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
||||
Reference in New Issue
Block a user