/// <summary> /// Retrieve the collection of built-in and custom roles for the client. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='client'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RoleCollection> GetRetrieveRolesAsync(this IAccounts operations, string client, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetRetrieveRolesWithHttpMessagesAsync(client, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }