/// <summary> Get AAD Token. </summary> /// <param name='operations'> The operations group for this extension method. </param> /// <param name='userId'> User ID. </param> /// <param name='connectionName'> Connection name. </param> /// <param name='aadResourceUrls'> AAD Resource URLs. </param> /// <param name='channelId'> Channel ID. </param> /// <param name='cancellationToken'> The cancellation token. </param> /// <returns> A task representing an IDictionary of TokenResponses. </returns> public static async Task <IDictionary <string, TokenResponse> > GetAadTokensAsync(this IUserToken operations, string userId, string connectionName, AadResourceUrls aadResourceUrls, string channelId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var result = await operations.GetAadTokensWithHttpMessagesAsync(userId, connectionName, aadResourceUrls, channelId, null, cancellationToken).ConfigureAwait(false)) { return(result.Body); } }