Show / Hide Table of Contents

Class StreamTransferObject

Represents object which content is represented by .

Inheritance
Object
StreamTransferObject
StreamMessage
Implements
IDataTransferObject
Namespace: DotNext
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
Type Description
Boolean

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
Type Description
Task
| Improve this Doc View Source

IDataTransferObject.Length

Declaration
long? IDataTransferObject.Length { get; }
Returns
Type Description
Nullable<Int64>

Implements

IDataTransferObject

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
DataTransferObject.ReadAsTextAsync(IDataTransferObject, Encoding, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX