Initial commit

This commit is contained in:
Vladimir Solodovnikov
2024-10-01 00:55:06 +03:00
commit db1b8f8f74
54 changed files with 820 additions and 0 deletions
+25
View File
@@ -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());
}
}