Skip to main content

IDownloadStreamHandler

Namespace: Meshmakers.Octo.Runtime.Contracts.Repositories

Handles the download of a stream from a persistent storage

public interface IDownloadStreamHandler : IBinaryInfo, IDisposable

Implements IBinaryInfo, IDisposable

Properties​

Stream​

Returns the stream

public abstract Stream Stream { get; }

Property Value​

Stream

Methods​

Close(CancellationToken)​

Closes the GridFS stream.

void Close(CancellationToken cancellationToken)

Parameters​

cancellationToken CancellationToken
The cancellation token.

CloseAsync(CancellationToken)​

Closes the GridFS stream.

Task CloseAsync(CancellationToken cancellationToken)

Parameters​

cancellationToken CancellationToken
The cancellation token.

Returns​

Task
A Task.