2022-05-18 22:17:25 +04:00
|
|
|
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...");
|
2022-05-18 22:17:25 +04:00
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|