major update
This commit is contained in:
Executable → Regular
+16
-17
@@ -1,7 +1,18 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using NLog;
|
||||
using Ragon.Core;
|
||||
/*
|
||||
* Copyright 2023 Eduard Kargin <kargin.eduard@gmail.com>
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
namespace Ragon.Relay
|
||||
{
|
||||
@@ -9,20 +20,8 @@ namespace Ragon.Relay
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var logger = LogManager.GetLogger("Ragon.Relay");
|
||||
|
||||
logger.Info("Relay Application");
|
||||
|
||||
var configuration = Configuration.Load("relay.config.json");
|
||||
var relay = new Application(configuration);
|
||||
|
||||
logger.Info("Started");
|
||||
var relay = new Relay();
|
||||
relay.Start();
|
||||
|
||||
Console.ReadKey();
|
||||
|
||||
relay.Stop();
|
||||
logger.Info("Stopped");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user