/// <summary> /// Gets all legal agreements that user needs to accept before purchasing a /// domain. /// </summary> /// <remarks> /// Description for Gets all legal agreements that user needs to accept before /// purchasing a domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// Name of the top-level domain. /// </param> /// <param name='agreementOption'> /// Domain agreement options. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <TldLegalAgreement> > ListAgreementsAsync(this ITopLevelDomainsOperations operations, string name, TopLevelDomainAgreementOption agreementOption, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListAgreementsWithHttpMessagesAsync(name, agreementOption, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets all legal agreements that user needs to accept before purchasing a /// domain. /// </summary> /// <remarks> /// Gets all legal agreements that user needs to accept before purchasing a /// domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// Name of the top-level domain. /// </param> /// <param name='includePrivacy'> /// If <code>true</code>, then the list of agreements will include /// agreements for domain privacy as well; otherwise, /// <code>false</code>. /// </param> /// <param name='forTransfer'> /// If <code>true</code>, then the list of agreements will include /// agreements for domain transfer as well; otherwise, /// <code>false</code>. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <TldLegalAgreement> > ListAgreementsAsync(this ITopLevelDomainsOperations operations, string name, bool?includePrivacy = default(bool?), bool?forTransfer = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListAgreementsWithHttpMessagesAsync(name, includePrivacy, forTransfer, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }