Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using CommandHandler;
|
||||
using CommandHandler.Navigation;
|
||||
using CommandHandler.Navigation.States;
|
||||
|
||||
Console.WriteLine("Hello, World!");
|
||||
|
||||
INavigationContext context = new NavigationContext();
|
||||
context.SetState(new NavigationMainState());
|
||||
|
||||
while (ApplicationContext.IsRan)
|
||||
{
|
||||
try
|
||||
{
|
||||
var line = Console.ReadLine();
|
||||
if (!string.IsNullOrEmpty(line))
|
||||
{
|
||||
var command = context.GetCommand(line);
|
||||
await command.Execute();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.ToString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user