csharp
public interface IContentTransportFetches a URL's bytes, optionally starting part way in.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The one place the content system touches the network, and an interface so that the cache above it can be tested without one. Every interesting failure a download has — a connection that dies half way, a server that ignores a range request, bytes that arrive corrupted — is a behaviour of this interface rather than of HTTP, so a test can produce it deliberately.
It fetches; it does not retry, cache or verify. Those are the layer above's job, because they need to know about bundles and this only knows about bytes.
Methods (1)
ValueTask<ContentDownload> GetAsync(string url, long offset = 0, CancellationToken cancellationToken = default(CancellationToken))Starts reading a URL.
Used by (9)
- CountingTransportAddressablesRemote
- AppBuilderVixen.App.Hosting
- BundleCacheVixen.Assets
- ContentMountVixen.App.Hosting
- ContentUpdateVixen.Assets
- FakeContentTransportVixen.Assets.Tests
- HttpContentTransportVixen.Assets
- FakeContentTransportVixen.App.Tests
- RemoteContentMountTestsVixen.App.Tests