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 }
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 }