TestimoX

API Reference

Class

AdmxDownloadService

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers static

Minimal downloader for ADMX assets with optional SHA-256 verification.

Inheritance

  • Object
  • AdmxDownloadService

Methods

public static async Task<String> DownloadAsync(AdmxAsset asset, String destinationDirectory) #
Returns: Task<String>

Downloads the specified asset to a destination directory, verifying SHA-256 when provided.

Parameters

asset ADPlayground.Gpo.GpoLocal.AdmxAsset requiredposition: 0
Asset descriptor (URL and expected file name).
destinationDirectory System.String requiredposition: 1
Directory to write the downloaded file to.

Returns

Full path to the downloaded file.

Exceptions

  • InvalidOperationException – Thrown when SHA-256 does not match the expected value.