Ejemplo n.º 1
0
        /// <summary>
        /// List all owners of a bucket.
        /// </summary>
        /// <param name="bucketId">ID of a bucket to get owners</param>
        /// <returns>the List all owners of a bucket</returns>
        public async Task <List <ResourceOwner> > GetOwnersAsync(string bucketId)
        {
            Arguments.CheckNonEmptyString(bucketId, nameof(bucketId));

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

            return(members.Users);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// List all owners of a bucket.
        /// </summary>
        /// <param name="bucketId">ID of a bucket to get owners</param>
        /// <returns>the List all owners of a bucket</returns>
        public async Task <List <ResourceOwner> > GetOwners(string bucketId)
        {
            Arguments.CheckNonEmptyString(bucketId, nameof(bucketId));

            return(await _service.GetBucketsIDOwnersAsync(bucketId).ContinueWith(t => t.Result.Users));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// List all owners of a bucket.
        /// </summary>
        /// <param name="bucketId">ID of a bucket to get owners</param>
        /// <returns>the List all owners of a bucket</returns>
        public async Task <List <ResourceOwner> > GetOwnersAsync(string bucketId)
        {
            Arguments.CheckNonEmptyString(bucketId, nameof(bucketId));

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