Beispiel #1
0
        public async Task MainAsync(string[] args)
        {
            if (args == null || args.Length != 2)
            {
                throw new Exception("Tokens missing as command line argument.");
            }
            await Startup.RunAsync(args);

            await Task.Delay(-1); // Keep the program alive
        }
Beispiel #2
0
 public static Task Main(string[] args)
 => Startup.RunAsync(args);
Beispiel #3
0
 public static async Task RunAsync(string[] args)
 {
     Startup startup = new Startup(args);
     await startup.RunAsync();
 }
Beispiel #4
0
 public static async Task RunAsync(string[] args)
 {
     var startup = new Startup(args[0], args[1]);
     await startup.RunAsync();
 }