Ejemplo n.º 1
0
        public Either <DomainError, ServiceResponse> Execute(string playListId)
        {
            var playList = playListPersistence.GetPlayList(playListId);

            playList.Archive();
            playListPersistence.Persist(playList);
            playListNotifier.NotifyPlayListHasBeenArchived(playListId);
            return(ServiceResponse.Success);
        }
Ejemplo n.º 2
0
 public async Task Handle(PlayListHasBeenArchived @event)
 {
     playListNotifier.NotifyPlayListHasBeenArchived(@event.PlayListId);
     await websocket.PushMessageWithEventToAll(@event);
 }
 public void Handle(PlayListHasBeenArchived @event)
 {
     playListNotifier.NotifyPlayListHasBeenArchived(@event.PlayListId);
 }