public async Task Handle(FilmUpdatedToWatchedEvent @event)
 {
     if (await _watchNextReader.IsFilmWatchNextSelection(@event.FilmId))
     {
         await _eventService.IssueCommand(new ExpireWatchNextSelectionCommand
         {
             FilmId = @event.FilmId,
             Reason = WatchNextExpiryReason.Watched
         });
     }
 }
Exemplo n.º 2
0
 private Task <bool> IsActiveWatchNext(long filmId, CancellationToken cancellationToken)
 {
     return(_watchNextReader.IsFilmWatchNextSelection(filmId));
 }