Table of Contents

Class LicenseExtractor

Namespace
OneImlx.Terminal.Licensing
Assembly
OneImlx.Terminal.dll

The default ILicenseExtractor

public sealed class LicenseExtractor : ILicenseExtractor
Inheritance
LicenseExtractor
Implements
Inherited Members

Constructors

LicenseExtractor(ILicenseDebugger, TerminalOptions, ILogger<LicenseExtractor>, IHttpClientFactory?)

Initialize a new instance.

public LicenseExtractor(ILicenseDebugger licenseDebugger, TerminalOptions terminalOptions, ILogger<LicenseExtractor> logger, IHttpClientFactory? httpClientFactory = null)

Parameters

licenseDebugger ILicenseDebugger

The license debugger.

terminalOptions TerminalOptions

The configuration options.

logger ILogger<LicenseExtractor>

The logger.

httpClientFactory IHttpClientFactory

The optional HTTP client factory

Methods

ExtractLicenseAsync(LicenseExtractorContext)

Extracts the License from the license keys.

public Task<LicenseExtractorResult> ExtractLicenseAsync(LicenseExtractorContext context)

Parameters

context LicenseExtractorContext

Returns

Task<LicenseExtractorResult>

GetLicenseAsync()

Gets the extracted license asynchronously.

public Task<License?> GetLicenseAsync()

Returns

Task<License>