/// <summary> /// Sets the license for a specific tenant /// </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 SetTenantLicenseAsync(this IHostLicenses operations, HostLicensesSetTenantLicenseParameters body = default(HostLicensesSetTenantLicenseParameters), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.SetTenantLicenseWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Sets the license for a specific tenant /// </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> public static void SetTenantLicense(this IHostLicenses operations, HostLicensesSetTenantLicenseParameters body = default(HostLicensesSetTenantLicenseParameters)) { operations.SetTenantLicenseAsync(body).GetAwaiter().GetResult(); }