コード例 #1
0
 /// <summary>
 /// Deactivate 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='deactivateLicenseOnlineParameters'>
 /// DeactivateLicenseOnline action parameters
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeactivateLicenseOnlineAsync(this IHostLicenses operations, DeactivateLicenseOnlineParameters deactivateLicenseOnlineParameters = default(DeactivateLicenseOnlineParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.DeactivateLicenseOnlineWithHttpMessagesAsync(deactivateLicenseOnlineParameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #2
0
 /// <summary>
 /// Deactivate 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='deactivateLicenseOnlineParameters'>
 /// DeactivateLicenseOnline action parameters
 /// </param>
 public static void DeactivateLicenseOnline(this IHostLicenses operations, DeactivateLicenseOnlineParameters deactivateLicenseOnlineParameters = default(DeactivateLicenseOnlineParameters))
 {
     operations.DeactivateLicenseOnlineAsync(deactivateLicenseOnlineParameters).GetAwaiter().GetResult();
 }