/// <summary> /// Uploads a new offline license activation. /// The content of the license is sent as a file embedded in the HTTP request. /// </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='file'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ActivateLicenseOfflineAsync(this IHostLicenses operations, Stream file, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.ActivateLicenseOfflineWithHttpMessagesAsync(file, null, cancellationToken).ConfigureAwait(false)).Dispose(); }