/// <summary> /// Get a list of all the roles in the system /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <RoleDTO> > GetAllRolesAsync(this IRoles operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetAllRolesWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }