/// <summary>
 /// Release acquired license units
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Administration or
 /// Administration.Write.
 ///
 /// 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 <LicenseResultDto> ReleaseAsync(this ILicensing operations, ConsumptionLicenseDto body = default(ConsumptionLicenseDto), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ReleaseWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Release acquired license units
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Administration or
 /// Administration.Write.
 ///
 /// Requires authentication.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dto'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LicenseResult> ReleaseAsync(this ILicensing operations, ConsumptionLicenseDto dto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.ReleaseWithHttpMessagesAsync(dto, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Release acquired license units
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Administration or
 /// Administration.Write.
 ///
 /// Requires authentication.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// </param>
 public static LicenseResultDto Release(this ILicensing operations, ConsumptionLicenseDto body = default(ConsumptionLicenseDto))
 {
     return(operations.ReleaseAsync(body).GetAwaiter().GetResult());
 }
 public SigningEngine(ISvgRenderer svgRenderer,
                      ILicensing licensing)
 {
     _svgRenderer = svgRenderer;
     _licensing   = licensing;
 }
Beispiel #5
0
 /// <summary>
 /// Release acquired license units
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Administration or
 /// Administration.Write.
 ///
 /// Requires authentication.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dto'>
 /// </param>
 public static LicenseResult Release(this ILicensing operations, ConsumptionLicenseDto dto)
 {
     return(operations.ReleaseAsync(dto).GetAwaiter().GetResult());
 }