/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='user'> /// </param> /// <param name='id'> /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static AzureOperationResponse AddUserToTeamWithHttpMessages(this IAPIClient operations, UserDetailModelInner user = default(UserDetailModelInner), System.Guid?id = default(System.Guid?), Dictionary <string, List <string> > customHeaders = null) { return(operations.AddUserToTeamWithHttpMessagesAsync(user, id, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='user'> /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task AddUserToTeamAsync(this IAPIClient operations, UserDetailModelInner user = default(UserDetailModelInner), System.Guid?id = default(System.Guid?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.AddUserToTeamWithHttpMessagesAsync(user, id, null, cancellationToken).ConfigureAwait(false)).Dispose(); }