2021-12-06 02:49:27 +03:00
|
|
|
|
using System;
|
2022-08-13 08:34:20 +03:00
|
|
|
|
using System.Collections.Generic;
|
2021-12-06 02:49:27 +03:00
|
|
|
|
using BlueWest.Tools;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace BlueWest.Core
|
|
|
|
|
{
|
|
|
|
|
public sealed class BlueProgram
|
|
|
|
|
{
|
|
|
|
|
|
2022-08-13 08:34:20 +03:00
|
|
|
|
private static readonly Dictionary<Type, List<EventListenerBase>> Events = new(10000);
|
2021-12-06 02:49:27 +03:00
|
|
|
|
|
|
|
|
|
private static readonly EventManager EventManager = new(Events);
|
|
|
|
|
|
|
|
|
|
private readonly BlueConsole _blueConsole = new BlueConsole();
|
|
|
|
|
|
|
|
|
|
public void Run()
|
|
|
|
|
{
|
|
|
|
|
|
2022-08-22 00:14:50 +03:00
|
|
|
|
_ = new ThreadServer(EventManager);
|
2021-12-06 02:49:27 +03:00
|
|
|
|
BlueWestConsoleBanner();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void BlueWestConsoleBanner()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine(" |------------------------------«");
|
2022-11-13 19:59:38 +03:00
|
|
|
|
Console.WriteLine(" » CodeLiturgy Dashboard «");
|
2021-12-06 02:49:27 +03:00
|
|
|
|
Console.WriteLine(" |------------------------------«\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|