/// <summary> /// Gets a list of service principals from the current tenant. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextLink'> /// Next link for the list operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ServicePrincipal> > ListNextAsync(this IServicePrincipalsOperations operations, string nextLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }