initial upload
This commit is contained in:
parent
a0aa9cc28e
commit
f857f43df4
553 changed files with 46169 additions and 13 deletions
|
|
@ -0,0 +1,34 @@
|
|||
using MemoryPack;
|
||||
|
||||
namespace Insight.Agent.Messages
|
||||
{
|
||||
[MemoryPackUnion(1, typeof(Authentication))]
|
||||
[MemoryPackUnion(2, typeof(AuthenticationRequest))]
|
||||
public partial interface IAgentMessage { }
|
||||
|
||||
[MemoryPackable]
|
||||
public partial class Authentication : IAgentMessage
|
||||
{
|
||||
[MemoryPackOrder(0)]
|
||||
public PlatformType? Platform { get; set; }
|
||||
|
||||
[MemoryPackOrder(1)]
|
||||
public Guid Serial { get; set; }
|
||||
|
||||
[MemoryPackOrder(2)]
|
||||
public Version? Version { get; set; }
|
||||
|
||||
[MemoryPackOrder(3)]
|
||||
public string? Hostname { get; set; }
|
||||
|
||||
public enum PlatformType
|
||||
{
|
||||
Unknown = 0,
|
||||
Windows = 1,
|
||||
Unix = 2
|
||||
}
|
||||
}
|
||||
|
||||
[MemoryPackable]
|
||||
public partial class AuthenticationRequest : IAgentMessage { }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue