Example #1
0
        public static async Task <RobotScheduler> Connect()
        {
            var scheduler = new RobotScheduler();
            await scheduler.ConnectInernal();

            return(scheduler);
        }
Example #2
0
        static async Task Main()
        {
            await using var robot = await RobotScheduler.Connect();

            robot.AddBehavior(ParrotModeScreen);
            robot.AddBehavior(ParrotModeWheels);
            robot.AddBehavior(ParrotModeLift);
            robot.AddBehavior(ParrotModeHead);
            Console.ReadKey();
        }