public async Task notify_play_list_has_been_archived_and_send_to_websocket() { var aPlaylistId = APlaylist.Id; var @event = new PlayListHasBeenArchived(aPlaylistId); await playListHasBeenArchived.Handle(@event); playListNotifier.Received().NotifyPlayListHasBeenArchived(aPlaylistId); await websocket.Received().PushMessageWithEventToAll(@event); }
protected bool Equals(PlayListHasBeenArchived other) { return(PlayListId == other.PlayListId); }
public async Task Handle(PlayListHasBeenArchived @event) { playListNotifier.NotifyPlayListHasBeenArchived(@event.PlayListId); await websocket.PushMessageWithEventToAll(@event); }
public void Handle(PlayListHasBeenArchived @event) { playListNotifier.NotifyPlayListHasBeenArchived(@event.PlayListId); }
public async void Consume(PlayListHasBeenArchived @event) { var playListHasBeenArchivedEventHandler = playListEventHandlerCreator.PlayListHasBeenArchived(); await playListHasBeenArchivedEventHandler.Handle(@event); }