IAsyncLicenseProvider

Namespace: Babel.Licensing Assembly: Babel.Licensing.dll

Interface for async license providers.

public interface IAsyncLicenseProvider : ILicenseProvider

Implements

ILicenseProvider

Methods

GetLicenseAsync(ILicenseContext, Type, object, CancellationToken)

Gets a license for an instance or type of component.

Task<ILicense> GetLicenseAsync(ILicenseContext context, Type type, object instance, CancellationToken cancellationToken = default)

Parameters

Name
Description

A that specifies where you can use the licensed object.

type Type

A that represents the component requesting the license.

instance object

An object that is requesting the license.

cancellationToken CancellationToken

A token that can be used to request cancellation of the asynchronous operation.

Returns

Name
Description

A valid license for the specified context, type, and instance.

Last updated