A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://dotnet.github.io/dotNext/api/DotNext.IO.StreamTransferObject.html below:

Class StreamTransferObject | .NEXT

Class StreamTransferObject

Represents object which content is represented by Stream.

Inheritance

StreamTransferObject

Namespace: DotNext.IO Assembly: DotNext.IO.dll Syntax
public class StreamTransferObject : Disposable, IDisposable, IDataTransferObject, IAsyncDisposable
Constructors | Edit this page View Source StreamTransferObject(Stream, bool)

Represents object which content is represented by Stream.

Declaration
public 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.

Declaration
public virtual bool IsReusable { get; }
Property Value Methods | Edit this page View Source Dispose(bool)

Releases resources associated with this object.

Declaration
protected override void Dispose(bool disposing)
Parameters Overrides | Edit this page View Source DisposeAsync()

Asynchronously releases the resources associated with this object.

Declaration
public 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.

Declaration
protected 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.

Declaration
public 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.

Declaration
public 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 token

The token that can be used to cancel the operation.

Returns Type Description ValueTask<TResult>

The converted DTO content.

Type Parameters Name Description TResult

The type of result.

TTransformation

The type of parser.

Exceptions Implements Extension Methods

RetroSearch 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