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
accessStreamAccessAccess 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
accessStreamAccessDesired access to stream.
tokenCancellationTokenCancellation token.