API Reference
Class
BenchmarkSourceDownloader
Downloads allow-listed benchmark sources and verifies their exact integrity.
Inheritance
- Object
- BenchmarkSourceDownloader
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
Constructors
public BenchmarkSourceDownloader() #Initializes a downloader with redirect validation owned by the benchmark source boundary.
Methods
public async Task<Byte[]> DownloadAsync(BenchmarkSourceDescriptor source, Boolean acceptSourceLicense, CancellationToken cancellationToken = null) #Returns:
Task<Byte[]>Downloads a source after the caller explicitly confirms acceptance of the provider's license terms.
Parameters
- source TestimoX.Benchmarks.Sources.BenchmarkSourceDescriptor
- acceptSourceLicense System.Boolean
- cancellationToken System.Threading.CancellationToken = null
public static Void Verify(BenchmarkSourceDescriptor source, Byte[] content) #Returns:
VoidVerifies source size and SHA-256 before import.
Parameters
- source TestimoX.Benchmarks.Sources.BenchmarkSourceDescriptor
- content System.Byte[]