/// <summary>
 /// Activate the license for the host
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Administration or
 /// Administration.Write.
 ///
 /// Host only. Requires authentication.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='activateLicenseParameters'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ActivateLicenseOnlineAsync(this IHostLicenses operations, ActivateLicenseParameters activateLicenseParameters = default(ActivateLicenseParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.ActivateLicenseOnlineWithHttpMessagesAsync(activateLicenseParameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
예제 #2
0
 /// <summary>
 /// Activate the license for the host
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Administration or
 /// Administration.Write.
 ///
 /// Host only. Requires authentication.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ActivateLicenseOnlineAsync(this IHostLicenses operations, HostLicensesActivateLicenseOnlineParameters body = default(HostLicensesActivateLicenseOnlineParameters), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.ActivateLicenseOnlineWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }