Files
Ragon/Ragon.Relay/Program.cs
T

28 lines
644 B
C#
Raw Normal View History

2022-12-16 00:05:46 +04:00
using System;
using System.Runtime.InteropServices;
using NLog;
using Ragon.Core;
namespace Ragon.Relay
{
class Program
{
static void Main(string[] args)
{
var logger = LogManager.GetLogger("Ragon.Relay");
2022-12-20 12:20:52 -08:00
2022-12-16 00:05:46 +04:00
logger.Info("Relay Application");
2022-12-20 12:20:52 -08:00
var configuration = Configuration.Load("relay.config.json");
2022-12-16 00:05:46 +04:00
var relay = new Application(configuration);
2022-12-20 12:20:52 -08:00
2022-12-16 00:05:46 +04:00
logger.Info("Started");
2022-12-20 12:20:52 -08:00
relay.Start();
2022-12-16 00:05:46 +04:00
Console.ReadKey();
2022-12-20 12:20:52 -08:00
2022-12-16 00:05:46 +04:00
relay.Stop();
logger.Info("Stopped");
}
}
}