/// <summary> /// Get a user by UserName /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='userName'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetUserByUsernameAsync(this IFeatureManagementAppTierAPI operations, string userName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserByUsernameWithHttpMessagesAsync(userName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }