Files
Ragon/Ragon/Sources/Bootstrap.cs
T

20 lines
510 B
C#
Raw Normal View History

using System;
using System.IO;
using NLog;
2022-04-24 09:05:15 +04:00
namespace Ragon.Core
{
public class Bootstrap
{
private ILogger _logger = LogManager.GetCurrentClassLogger();
public void Configure(PluginFactory factory)
{
_logger.Info("Configure application...");
var filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "config.json");
var configuration = ConfigurationLoader.Load(filePath);
2022-04-24 09:05:15 +04:00
var app = new Application(factory, configuration, 2);
app.Start();
}
}
}