/// <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>
 public static IPage <TldLegalAgreement> ListAgreements(this ITopLevelDomainsOperations operations, string name, TopLevelDomainAgreementOption agreementOption)
 {
     return(operations.ListAgreementsAsync(name, agreementOption).GetAwaiter().GetResult());
 }
Beispiel #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>
 public static IPage <TldLegalAgreement> ListAgreements(this ITopLevelDomainsOperations operations, string name, bool?includePrivacy = default(bool?), bool?forTransfer = default(bool?))
 {
     return(operations.ListAgreementsAsync(name, includePrivacy, forTransfer).GetAwaiter().GetResult());
 }