Delegates all stream access to an underlying stream. Disposing this stream
will not dispose the wrapped stream unless the derived implementation
does that explicitly.
- Namespace
- Statiq
.Common - Interfaces
-
- IDisposable
- IAsyncDisposable
- Base Types
-
- object
- MarshalByRefObject
- Stream
- Derived Types
graph BT
Type-->Base0["Stream"]
Base0-->Base1["MarshalByRefObject"]
Base1-->Base2["object"]
Type-.->Interface0["IDisposable"]
Type-.->Interface1["IAsyncDisposable"]
Type["DelegatingStream"]
class Type type-node
Derived0["TestContentStream"]-->Type
click Derived0 "/api/Statiq.Testing/TestContentStream"
Derived1["ActionDisposableStream"]-->Type
click Derived1 "/api/Statiq.Common/ActionDisposableStream"
Derived2["SignalingStream"]-->Type
click Derived2 "/api/Statiq.Common/SignalingStream"
Syntax
public abstract class DelegatingStream : Stream, IDisposable, IAsyncDisposable
Constructors
Name | Summary |
---|---|
DelegatingStream |
Properties
Name | Property Type | Summary |
---|---|---|
CanRead | bool | |
CanSeek | bool | |
CanTimeout | bool | |
CanWrite | bool | |
Length | long | |
Position | long | |
ReadTimeout | int | |
Stream | Stream | |
WriteTimeout | int |
Methods
Name | Return Value | Summary |
---|---|---|
BeginRead |
IAsyncResult | |
BeginWrite |
IAsyncResult | |
CopyTo |
void | |
CopyToAsync |
Task | |
EndRead |
int | |
EndWrite |
void | |
Flush |
void | |
FlushAsync |
Task | |
Read |
int | |
ReadAsync |
Task |
|
ReadByte |
int | |
Seek |
long | |
SetLength |
void | |
Write |
void | |
WriteAsync |
Task | |
WriteByte |
void |