Ejemplo n.º 1
0
 private async Task UpdatePlaylistForEveryoneInPartyAsync(Party party, PartyGoer partyGoer)
 {
     await DomainEvents.RaiseAsync(new PlaylistEnded { PartyCode = party.PartyCode });
 }
Ejemplo n.º 2
0
 private async Task UpdatePlaylistForEveryoneInPartyAsync(Party party, PartyGoer partyGoer)
 {
     var seeds = party.GetSeedUris(5);
     await DomainEvents.RaiseAsync(new QueueEnded { PartyCode = party.GetPartyCode(), SeedTracksUris = seeds.Item1, SeedArtistUris = seeds.Item2 });
 }
Ejemplo n.º 3
0
 public async Task SyncListenerWithSongAsync(PartyGoer listener)
 {
     await DomainEvents.RaiseAsync(new ChangeTrack { Listeners = new List <PartyGoer> {
                                                         listener
                                                     }, PartyCode = GetPartyCode(), ProgressMs = GetCurrentPositionInSong(), Track = GetCurrentSong() });
 }