/* * Default Required To Initialize the MainAsync() method. */ public static void Main(string[] args) { Program p = new Program(); int length = (int)CacheReader.Open(); cache = CacheReader.SeekCache(0, length, length + 8192); CacheReader.Close(); Task task = p.MainAsync(); System.Runtime.CompilerServices.TaskAwaiter await = task.GetAwaiter(); try { await.GetResult(); } catch (Exception e) { Console.WriteLine(e.ToString()); } }