mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-06 20:13:01 +02:00
Move TRANGA message
This commit is contained in:
parent
563afa1e6f
commit
065cac62af
@ -12,6 +12,16 @@ namespace API;
|
|||||||
|
|
||||||
public static class Tranga
|
public static class Tranga
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// ReSharper disable once InconsistentNaming
|
||||||
|
private const string TRANGA =
|
||||||
|
"\n\n" +
|
||||||
|
" _______ v2\n" +
|
||||||
|
"|_ _|.----..---.-..-----..-----..---.-.\n" +
|
||||||
|
" | | | _|| _ || || _ || _ |\n" +
|
||||||
|
" |___| |__| |___._||__|__||___ ||___._|\n" +
|
||||||
|
" |_____| \n\n";
|
||||||
|
|
||||||
public static Thread NotificationSenderThread { get; } = new (NotificationSender);
|
public static Thread NotificationSenderThread { get; } = new (NotificationSender);
|
||||||
public static Thread JobStarterThread { get; } = new (JobStarter);
|
public static Thread JobStarterThread { get; } = new (JobStarter);
|
||||||
private static readonly ILog Log = LogManager.GetLogger(typeof(Tranga));
|
private static readonly ILog Log = LogManager.GetLogger(typeof(Tranga));
|
||||||
@ -20,6 +30,7 @@ public static class Tranga
|
|||||||
{
|
{
|
||||||
BasicConfigurator.Configure();
|
BasicConfigurator.Configure();
|
||||||
Log.Info("Logger Configured.");
|
Log.Info("Logger Configured.");
|
||||||
|
Log.Info(TRANGA);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void NotificationSender(object? serviceProviderObj)
|
private static void NotificationSender(object? serviceProviderObj)
|
||||||
@ -82,14 +93,6 @@ public static class Tranga
|
|||||||
Log.Error("Error sending notifications.", e);
|
Log.Error("Error sending notifications.", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private const string TRANGA =
|
|
||||||
"\n\n" +
|
|
||||||
" _______ \n" +
|
|
||||||
"|_ _|.----..---.-..-----..-----..---.-.\n" +
|
|
||||||
" | | | _|| _ || || _ || _ |\n" +
|
|
||||||
" |___| |__| |___._||__|__||___ ||___._|\n" +
|
|
||||||
" |_____| \n\n";
|
|
||||||
private static readonly Dictionary<Thread, Job> RunningJobs = new();
|
private static readonly Dictionary<Thread, Job> RunningJobs = new();
|
||||||
private static void JobStarter(object? serviceProviderObj)
|
private static void JobStarter(object? serviceProviderObj)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user