IReadFileLease interface

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

public interface IReadFileLease : IAsyncDisposable

Inherits or implements IAsyncDisposable.

Owns acquired read access until disposed or its presentation closes.

Properties

DisplayName

string DisplayName { get; }

A display filename, without a filesystem path.

Methods

OpenReadAsync

ValueTask<Stream> OpenReadAsync(CancellationToken cancellationToken = default)

Consumes the lease once and returns its acquired stream. The lease retains ownership of the stream.