API Reference
BenchmarkPackImportService
Imports current allow-listed sources from local files or provider downloads into a pack store.
Inheritance
- Object
- BenchmarkPackImportService
Constructors
public BenchmarkPackImportService(BenchmarkSourceDownloader downloader = null) #Initializes an import service.
Parameters
- downloader TestimoX.Benchmarks.Sources.BenchmarkSourceDownloader = null
Methods
public BenchmarkPackImportResult ImportCurrentFromDirectory(String productVersion, String sourceDirectory, String packStorePath = null) #BenchmarkPackImportResultImports all current profiles for a Windows Server generation from a local source directory.
Parameters
- productVersion System.String
- sourceDirectory System.String
- packStorePath System.String = null
public BenchmarkPackImportResult ImportCurrentFromDirectory(BenchmarkProductFamily family, String productVersion, String sourceDirectory, String packStorePath = null) #BenchmarkPackImportResultImports all current sources for a product family from a local source directory.
Parameters
- family TestimoX.Benchmarks.BenchmarkProductFamily
- productVersion System.String
- sourceDirectory System.String
- packStorePath System.String = null
public BenchmarkPackImportResult ImportCurrentFromDirectory(BenchmarkProductFamily family, String productVersion, BenchmarkProductVariant productVariant, String sourceDirectory, String packStorePath = null) #BenchmarkPackImportResultImports all current sources for a product family, generation, and variant from a local source directory.
Parameters
- family TestimoX.Benchmarks.BenchmarkProductFamily
- productVersion System.String
- productVariant TestimoX.Benchmarks.BenchmarkProductVariant
- sourceDirectory System.String
- packStorePath System.String = null
public async Task<BenchmarkPackImportResult> ImportCurrentOnlineAsync(String productVersion, Boolean acceptSourceLicense, String packStorePath = null, CancellationToken cancellationToken = null) #Task<BenchmarkPackImportResult>Downloads, verifies, imports, and stores all current profiles for a Windows Server generation.
Parameters
- productVersion System.String
- acceptSourceLicense System.Boolean
- packStorePath System.String = null
- cancellationToken System.Threading.CancellationToken = null
public async Task<BenchmarkPackImportResult> ImportCurrentOnlineAsync(BenchmarkProductFamily family, String productVersion, Boolean acceptSourceLicense, String packStorePath = null, CancellationToken cancellationToken = null) #Task<BenchmarkPackImportResult>Downloads, verifies, imports, and stores current sources for a product family.
Parameters
- family TestimoX.Benchmarks.BenchmarkProductFamily
- productVersion System.String
- acceptSourceLicense System.Boolean
- packStorePath System.String = null
- cancellationToken System.Threading.CancellationToken = null
public async Task<BenchmarkPackImportResult> ImportCurrentOnlineAsync(BenchmarkProductFamily family, String productVersion, BenchmarkProductVariant productVariant, Boolean acceptSourceLicense, String packStorePath = null, CancellationToken cancellationToken = null) #Task<BenchmarkPackImportResult>Downloads, verifies, imports, and stores current sources for a product family, generation, and variant.
Parameters
- family TestimoX.Benchmarks.BenchmarkProductFamily
- productVersion System.String
- productVariant TestimoX.Benchmarks.BenchmarkProductVariant
- acceptSourceLicense System.Boolean
- packStorePath System.String = null
- cancellationToken System.Threading.CancellationToken = null
public BenchmarkPackImportResult ImportNativePack(String packPath, String packStorePath = null) #BenchmarkPackImportResultImports a native TestimoX pack into a pack store after full validation.
Parameters
- packPath System.String
- packStorePath System.String = null