forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrereqValidation.cs
More file actions
37 lines (31 loc) · 827 Bytes
/
Copy pathPrereqValidation.cs
File metadata and controls
37 lines (31 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Threading.Tasks;
using NLog;
namespace L2dotNET
{
public class PreReqValidation : IInitialisable
{
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
public bool Initialised { get; private set; }
public PreReqValidation()
{
}
public async Task Initialise()
{
if (Initialised)
{
return;
}
//TODO: Add Check service
if (true)
{
Initialised = true;
return;
}
Log.Warn("Some checks have failed. Please correct the errors and try again.");
Log.Info("Press ENTER to exit...");
Console.Read();
Environment.Exit(0);
}
}
}