Ejemplo n.º 1
0
        public static void TaskPlayerExample()
        {
            var player = new TaskPlayer();

            player
            .PlayAsync()
            .ContinueWith((playCompletedTask) =>
            {
                Console.WriteLine("Player finished playing");
            });
        }
Ejemplo n.º 2
0
        public static void TaskPlayerExample2()
        {
            var player = new TaskPlayer();

            player
            .LoadAsync("c://temp")
            .ContinueWith((loadCompletedTask) =>
            {
                player.Songs = loadCompletedTask.Result;
                player.PlayAsync();
            });
        }