Class ChunkStream
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Assembly: Silverback.Integration.dll
Syntax
public sealed class ChunkStream : Stream, IDisposable, IAsyncDisposable
Constructors
Declaration
public ChunkStream(IMessageStreamEnumerable<IRawInboundEnvelope> source)
Parameters
Properties
CanRead
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override bool CanRead { get; }
Property Value
Overrides
CanSeek
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override bool CanSeek { get; }
Property Value
Overrides
CanTimeout
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override bool CanTimeout { get; }
Property Value
Overrides
CanWrite
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override bool CanWrite { get; }
Property Value
Overrides
Length
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override long Length { get; }
Property Value
Overrides
Position
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override long Position { get; set; }
Property Value
Overrides
Methods
Close()
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override void Close()
Overrides
Dispose(bool)
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
|
Overrides
DisposeAsync()
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override ValueTask DisposeAsync()
Returns
Overrides
Flush()
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override void Flush()
Overrides
Read(byte[], int, int)
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
| Type |
Name |
Description |
| byte[] |
buffer |
|
| int |
offset |
|
| int |
count |
|
Returns
Overrides
Read(Span<byte>)
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override int Read(Span<byte> buffer)
Parameters
Returns
Overrides
ReadAsync(byte[], int, int, CancellationToken)
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Returns
Overrides
ReadAsync(Memory<byte>, CancellationToken)
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
Seek(long, SeekOrigin)
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Returns
Overrides
SetLength(long)
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override void SetLength(long value)
Parameters
| Type |
Name |
Description |
| long |
value |
|
Overrides
Write(byte[], int, int)
The Stream implementation used to read the chunked messages. This stream is used by the
ChunkSequenceReader and it is asynchronously pushed with the chunks being
consumed.
Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
| Type |
Name |
Description |
| byte[] |
buffer |
|
| int |
offset |
|
| int |
count |
|
Overrides
Implements