Vixen
02b45cc4
csharp
public sealed class ContentDownload

A response in progress: where it starts, how long it is, and its bytes.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Offset is what the server actually gave, not what was asked for. A server is entitled to ignore a range request and send the whole resource, and one that does must not leave the caller appending a complete file to a partial one. Reporting where the body really starts is what lets the cache notice and start again.

Fields and properties (3)

  • public Stream Body

    The bytes, from Offset onwards.

  • public long Offset

    Where in the resource Body starts.

  • public long? TotalLength

    How long the whole resource is, or if the server did not say.

Methods (2)

  • public ContentDownload(Stream body, long offset, long? totalLength)

    A response in progress: where it starts, how long it is, and its bytes.

  • public void Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Used by (8)

  • CountingTransportAddressablesRemote
  • BundleCacheVixen.Assets
  • ContentUpdateVixen.Assets
  • FakeContentTransportVixen.Assets.Tests
  • HttpContentTransportVixen.Assets
  • HttpContentTransportTestsVixen.Assets.Tests
  • IContentTransportVixen.Assets
  • FakeContentTransportVixen.App.Tests