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);
        }
예제 #2
0
 public void Handle(PlayListHasBeenRenamed @event)
 {
     playListNotifier.NotifyPlayListHasBeenRenamed(@event.PlayListId, @event.NewPlayListName);
 }
예제 #3
0
 public async Task Handle(PlayListHasBeenRenamed @event)
 {
     playListNotifier.NotifyPlayListHasBeenRenamed(@event.PlayListId, @event.NewPlayListName);
     await websocketPort.PushMessageWithEventToAll(@event);
 }