/// <summary> /// List all owners of a ScraperTarget. /// </summary> /// <param name="scraperTargetId">ID of a ScraperTarget to get owners</param> /// <returns>the List all owners of a scraperTarget</returns> public async Task <List <ResourceOwner> > GetOwnersAsync(string scraperTargetId) { Arguments.CheckNonEmptyString(scraperTargetId, nameof(scraperTargetId)); var response = await _service.GetScrapersIDOwnersAsync(scraperTargetId).ConfigureAwait(false); return(response.Users); }
/// <summary> /// List all owners of a ScraperTarget. /// </summary> /// <param name="scraperTargetId">ID of a ScraperTarget to get owners</param> /// <returns>the List all owners of a scraperTarget</returns> public async Task <List <ResourceOwner> > GetOwners(string scraperTargetId) { Arguments.CheckNonEmptyString(scraperTargetId, nameof(scraperTargetId)); return(await _service.GetScrapersIDOwnersAsync(scraperTargetId).ContinueWith(t => t.Result.Users)); }