Show / Hide Table of Contents

Class BinaryTransferObject

Represents binary object.

Inheritance
Object
BinaryTransferObject
BinaryMessage
Implements
IDataTransferObject
Namespace: DotNext
Assembly: DotNext.Net.Cluster.dll
Syntax
public class BinaryTransferObject : object, IDataTransferObject

Constructors

| Improve this Doc View Source

BinaryTransferObject(ReadOnlyMemory<Byte>)

Initializes a new binary object.

Declaration
public BinaryTransferObject(ReadOnlyMemory<byte> content)
Parameters
Type Name Description
ReadOnlyMemory<Byte> content

The content of the object.

| Improve this Doc View Source

BinaryTransferObject(ReadOnlySequence<Byte>)

Initializes a new binary DTO.

Declaration
public BinaryTransferObject(ReadOnlySequence<byte> content)
Parameters
Type Name Description
ReadOnlySequence<Byte> content

The content of the object.

Properties

| Improve this Doc View Source

Content

Gets stream representing content.

Declaration
public ReadOnlySequence<byte> Content { get; }
Property Value
Type Description
ReadOnlySequence<Byte>

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.IsReusable

Declaration
bool IDataTransferObject.IsReusable { get; }
Returns
Type Description
Boolean
| 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)
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