예제 #1
0
        public async Task ShiftToSpeakerAsync(ISpeaker otherSpeaker)
        {
            await otherSpeaker.PlayAsync(await CurrentlyPlayingAsync());

            await TurnOffAsync();

            await Task.Delay(1000); // to make sure that the other speaker has initialized itself successfully
        }