Class LicenseExtractor
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
ILicenseDebuggerThe license debugger.
terminalOptions
TerminalOptionsThe configuration options.
logger
ILogger<LicenseExtractor>The logger.
httpClientFactory
IHttpClientFactoryThe optional HTTP client factory
Methods
ExtractLicenseAsync(LicenseExtractorContext)
Extracts the License from the license keys.
public Task<LicenseExtractorResult> ExtractLicenseAsync(LicenseExtractorContext context)
Parameters
context
LicenseExtractorContext
Returns
GetLicenseAsync()
Gets the extracted license asynchronously.
public Task<License?> GetLicenseAsync()