Ejemplo n.º 1
0
        /// <summary>
        /// List all members of an organization.
        /// </summary>
        /// <param name="orgId">ID of organization to get members</param>
        /// <returns>the List all members of an organization</returns>
        public async Task <List <ResourceMember> > GetMembersAsync(string orgId)
        {
            Arguments.CheckNonEmptyString(orgId, nameof(orgId));

            var response = await _service.GetOrgsIDMembersAsync(orgId).ConfigureAwait(false);

            return(response.Users);
        }
        /// <summary>
        /// List all members of an organization.
        /// </summary>
        /// <param name="orgId">ID of organization to get members</param>
        /// <returns>the List all members of an organization</returns>
        public async Task <List <ResourceMember> > GetMembersAsync(string orgId)
        {
            Arguments.CheckNonEmptyString(orgId, nameof(orgId));

            return(await _service.GetOrgsIDMembersAsync(orgId).ContinueWith(t => t.Result.Users));
        }