/// <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);
     }
 }
Exemplo n.º 2
0
 /// <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 &lt;code&gt;true&lt;/code&gt;, then the list of agreements will include
 /// agreements for domain privacy as well; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.
 /// </param>
 /// <param name='forTransfer'>
 /// If &lt;code&gt;true&lt;/code&gt;, then the list of agreements will include
 /// agreements for domain transfer as well; otherwise,
 /// &lt;code&gt;false&lt;/code&gt;.
 /// </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);
     }
 }