예제 #1
0
        /// <summary>
        /// List all members of a bucket.
        /// </summary>
        /// <param name="bucketId">ID of bucket to get members</param>
        /// <returns>the List all members of a bucket</returns>
        public async Task <List <ResourceMember> > GetMembersAsync(string bucketId)
        {
            Arguments.CheckNonEmptyString(bucketId, nameof(bucketId));

            var members = await _service.GetBucketsIDMembersAsync(bucketId).ConfigureAwait(false);

            return(members.Users);
        }
예제 #2
0
        /// <summary>
        /// List all members of a bucket.
        /// </summary>
        /// <param name="bucketId">ID of bucket to get members</param>
        /// <returns>the List all members of a bucket</returns>
        public async Task <List <ResourceMember> > GetMembers(string bucketId)
        {
            Arguments.CheckNonEmptyString(bucketId, nameof(bucketId));

            return(await _service.GetBucketsIDMembersAsync(bucketId).ContinueWith(t => t.Result.Users));
        }
        /// <summary>
        /// List all members of a bucket.
        /// </summary>
        /// <param name="bucketId">ID of bucket to get members</param>
        /// <returns>the List all members of a bucket</returns>
        public async Task <List <ResourceMember> > GetMembersAsync(string bucketId)
        {
            Arguments.CheckNonEmptyString(bucketId, nameof(bucketId));

            return((await _service.GetBucketsIDMembersAsync(bucketId)).Users);
        }