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