Represents object which content is represented by Stream.
InheritanceStreamTransferObject
Namespace: DotNext.IO Assembly: DotNext.IO.dll Syntaxpublic class StreamTransferObject : Disposable, IDisposable, IDataTransferObject, IAsyncDisposable
Constructors | Edit this page View Source StreamTransferObject(Stream, bool)
Represents object which content is represented by Stream.
Declarationpublic StreamTransferObject(Stream content, bool leaveOpen)
Parameters Properties | Edit this page View Source IsReusable
Indicates that the content of this message can be copied to the output stream or pipe multiple times.
Declarationpublic virtual bool IsReusable { get; }
Property Value Methods | Edit this page View Source Dispose(bool)
Releases resources associated with this object.
Declarationprotected override void Dispose(bool disposing)
Parameters Overrides | Edit this page View Source DisposeAsync()
Asynchronously releases the resources associated with this object.
Declarationpublic ValueTask DisposeAsync()
Returns Type Description ValueTask
A task that represents the asynchronous dispose operation.
| Edit this page View Source DisposeAsyncCore()Releases managed resources associated with this object asynchronously.
Declarationprotected override ValueTask DisposeAsyncCore()
Returns Type Description ValueTask
The task representing asynchronous execution of this method.
Overrides | Edit this page View Source LoadFromAsync(IDataTransferObject, CancellationToken)Loads the content from another data transfer object.
Declarationpublic ValueTask LoadFromAsync(IDataTransferObject source, CancellationToken token = default)
Parameters Returns Type Description ValueTask
The task representing asynchronous state of content loading.
Exceptions | Edit this page View Source TransformAsync<TResult, TTransformation>(TTransformation, CancellationToken)Parses the encapsulated stream.
Declarationpublic ValueTask<TResult> TransformAsync<TResult, TTransformation>(TTransformation transformation, CancellationToken token = default) where TTransformation : IDataTransferObject.ITransformation<TResult>
Parameters Type Name Description TTransformation transformation
The parser instance.
CancellationToken tokenThe token that can be used to cancel the operation.
Returns Type Description ValueTask<TResult>The converted DTO content.
Type Parameters Name Description TResultThe type of result.
TTransformationThe type of parser.
Exceptions Implements Extension MethodsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4