Beispiel #1
0
 public Task <bool> HasReferrersAsync(DomainId appId, DomainId contentId, SearchScope scope)
 {
     if (scope == SearchScope.All)
     {
         return(collectionAll.HasReferrersAsync(appId, contentId));
     }
     else
     {
         return(collectionPublished.HasReferrersAsync(appId, contentId));
     }
 }
Beispiel #2
0
 public Task <bool> HasReferrersAsync(DomainId appId, DomainId contentId, SearchScope scope,
                                      CancellationToken ct = default)
 {
     if (scope == SearchScope.All)
     {
         return(collectionAll.HasReferrersAsync(appId, contentId, ct));
     }
     else
     {
         return(collectionPublished.HasReferrersAsync(appId, contentId, ct));
     }
 }