public Either <DomainError, ServiceResponse> Execute(string playListId, string newPlayListName) { var playList = playListPersistence.GetPlayList(playListId); playList.Rename(newPlayListName); playListPersistence.Persist(playList); playListNotifier.NotifyPlayListHasBeenRenamed(playListId, newPlayListName); return(ServiceResponse.Success); }
public void Handle(PlayListHasBeenRenamed @event) { playListNotifier.NotifyPlayListHasBeenRenamed(@event.PlayListId, @event.NewPlayListName); }
public async Task Handle(PlayListHasBeenRenamed @event) { playListNotifier.NotifyPlayListHasBeenRenamed(@event.PlayListId, @event.NewPlayListName); await websocketPort.PushMessageWithEventToAll(@event); }