Class HttpOnnxModelSource
Resumable, verified HTTP provisioning. Foreground-only by design: an iOS download that survives
backgrounding needs NSUrlSessionConfiguration.CreateBackgroundSessionConfiguration, which
HttpClient does not map onto.
public sealed class HttpOnnxModelSource : IOnnxModelSource
- Inheritance
-
HttpOnnxModelSource
- Implements
- Inherited Members
Constructors
- HttpOnnxModelSource(HttpClient, IEdgeModelPaths, IOptions<HttpOnnxModelSourceOptions>, ILogger<HttpOnnxModelSource>)
Creates the source.
Properties
- Name
A short stable name, used in logs and in provisioning failures.
Methods
- CanProvide(OnnxModelManifest)
Whether this source could supply the manifest at all. Cheap and synchronous: it inspects the manifest, never the network.
- EnsureAsync(OnnxModelManifest, IProgress<ModelProvisioningProgress>?, CancellationToken)
Materialises every file into
<Models>/<modelId>/<sha16>, verifying each digest, and returns the resolved paths.