public static void Main(string[] args) { Console.WriteLine("Initialize Pi"); Pi.Init <BootstrapWiringPi>(); Console.WriteLine("Glueing Dependencies"); // Setup the testbot glue if (args.Any(a => a.Contains("--TestBot"))) { Glue.TestBot(); } else if (args.Any(a => a.Contains("--SoftBot"))) { Glue.Simulate(); } else { Glue.YomoBot(); } if (args.Any(a => a.Contains("--WheelTest"))) { WheelTest(); } CreateWebHostBuilder(args).Build().Run(); }
public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); // Setup the testbot glue if (args.Any(a => a.Contains("--TestBot"))) { Glue.TestBot(); } else if (args.Any(a => a.Contains("--SoftBot"))) { Glue.Simulate(); } else { Glue.YomoBot(); } }