/// <summary>
 /// Activates the tenant and email combination using email code received.
 /// </summary>
 /// <remarks>
 /// Activate the email registration for the current tenant
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Location of the activation.
 /// </param>
 /// <param name='emailRegistration'>
 /// The payload for tenant domain activation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EmailRegistration> ActivateEmailAsync(this IEmailRegistrationsOperations operations, string location, EmailRegistration emailRegistration, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ActivateEmailWithHttpMessagesAsync(location, emailRegistration, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Registers the tenant and email combination for verification.
 /// </summary>
 /// <remarks>
 /// Register an email for the current tenant
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Location of the registration
 /// </param>
 public static EmailRegistration RegisterEmail(this IEmailRegistrationsOperations operations, string location)
 {
     return(operations.RegisterEmailAsync(location).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Activates the tenant and email combination using email code received.
 /// </summary>
 /// <remarks>
 /// Activate the email registration for the current tenant
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Location of the activation.
 /// </param>
 /// <param name='emailRegistration'>
 /// The payload for tenant domain activation.
 /// </param>
 public static EmailRegistration ActivateEmail(this IEmailRegistrationsOperations operations, string location, EmailRegistration emailRegistration)
 {
     return(operations.ActivateEmailAsync(location, emailRegistration).GetAwaiter().GetResult());
 }