コード例 #1
0
 private Task <Validation <BaseError, PlexMediaSource> > MediaSourceMustExist(SynchronizePlexLibraries request) =>
 _mediaSourceRepository.GetPlex(request.PlexMediaSourceId)
 .Map(o => o.ToValidation <BaseError>("Plex media source does not exist."));
コード例 #2
0
 private Task <Validation <BaseError, PlexMediaSource> > PlexMediaSourceMustExist(
     GetPlexConnectionParameters request) =>
 _mediaSourceRepository.GetPlex(request.PlexMediaSourceId)
 .Map(
     v => v.ToValidation <BaseError>(
         $"Plex media source {request.PlexMediaSourceId} does not exist."));