Table of Contents

Interface IStreamProvider

Namespace
CarinaStudio.IO
Assembly
CarinaStudio.AppBase.Core.dll

Object to provide Stream.

public interface IStreamProvider
Extension Methods

Methods

CheckStreamAccess(StreamAccess)

Check whether given access to Stream is supported by this provider or not.

bool CheckStreamAccess(StreamAccess access)

Parameters

access StreamAccess

Access to stream.

Returns

bool

True if given combination of access is supported.

OpenStreamAsync(StreamAccess, CancellationToken)

Open stream asynchronously.

Task<Stream> OpenStreamAsync(StreamAccess access, CancellationToken token)

Parameters

access StreamAccess

Desired access to stream.

token CancellationToken

Cancellation token.

Returns

Task<Stream>

Task of opening stream.