Class StreamTransferObject
Represents object which content is represented by .
Inheritance
StreamTransferObject
Assembly: DotNext.Net.Cluster.dll
Syntax
public class StreamTransferObject : Disposable, IDataTransferObject
Constructors
|
Improve this Doc
View Source
StreamTransferObject(Stream, Boolean)
Initializes a new message.
Declaration
public StreamTransferObject(Stream content, bool leaveOpen)
Parameters
Type |
Name |
Description |
Stream |
content |
The message content.
|
Boolean |
leaveOpen |
true to leave the stream open after StreamTransferObject object is disposed; otherwise, false.
|
Properties
|
Improve this Doc
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
|
Improve this Doc
View Source
Dispose(Boolean)
Releases resources associated with this object.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
Boolean |
disposing |
true if called from ; false if called from finalizer .
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IDataTransferObject.CopyToAsync(PipeWriter, CancellationToken)
Declaration
ValueTask IDataTransferObject.CopyToAsync(PipeWriter output, CancellationToken token)
Parameters
Type |
Name |
Description |
PipeWriter |
output |
|
CancellationToken |
token |
|
Returns
Type |
Description |
ValueTask |
|
|
Improve this Doc
View Source
IDataTransferObject.CopyToAsync(Stream, CancellationToken)
Declaration
Task IDataTransferObject.CopyToAsync(Stream output, CancellationToken token)
Parameters
Type |
Name |
Description |
Stream |
output |
|
CancellationToken |
token |
|
Returns
|
Improve this Doc
View Source
IDataTransferObject.Length
Declaration
long? IDataTransferObject.Length { get; }
Returns
Implements
Extension Methods