AssetReadSnapshot class

Namespace Runic.Assets · Runic.Assets 0.7.0-preview.5

public sealed class AssetReadSnapshot : IAsyncDisposable, IDisposable

Inherits or implements IAsyncDisposable, IDisposable.

Owns one descriptor and the verified content stream it describes.

Constructors

AssetReadSnapshot

public AssetReadSnapshot(AssetDescriptor descriptor, Stream content)

Initializes a descriptor-and-stream snapshot.

Properties

Content

public Stream Content { get; }

Gets the immutable stream owned by this snapshot.

Descriptor

public AssetDescriptor Descriptor { get; }

Gets the metadata that exactly describes AssetReadSnapshot.Content.

Methods

Dispose

public void Dispose()

Inherits documentation from IDisposable.Dispose.

DisposeAsync

public ValueTask DisposeAsync()

Inherits documentation from IAsyncDisposable.DisposeAsync.