This commit is contained in:
2022-12-16 00:05:46 +04:00
parent 6bda468607
commit 4d8ed1105a
83 changed files with 1872 additions and 2387 deletions
+30
View File
@@ -0,0 +1,30 @@
using System;
using System.Runtime.InteropServices;
using NLog;
using Ragon.Core;
namespace Ragon.Relay
{
[StructLayout(LayoutKind.Sequential)]
struct Serializer
{
[FieldOffset(0)] public Guid Uuid;
[FieldOffset(0)] public long Long0;
[FieldOffset(0)] public long Long1;
}
class Program
{
static void Main(string[] args)
{
var logger = LogManager.GetLogger("Ragon.Relay");
logger.Info("Relay Application");
var configuration = Configuration.Load("config.json");
var relay = new Application(configuration);
relay.Start();
logger.Info("Started");
Console.ReadKey();
relay.Stop();
logger.Info("Stopped");
}
}
}