Wraps a
Stream and calls an action when it's disposed.
Disposing this stream will also dispose the underlying stream before the action is called.
- Namespace
- Statiq
.Common - Interfaces
-
- IDisposable
- IAsyncDisposable
- Base Types
-
- object
- MarshalByRefObject
- Stream
- DelegatingStream
Syntax
public class ActionDisposableStream : DelegatingStream, IDisposable, IAsyncDisposable
Constructors
| Name | Summary |
|---|---|
| Action |
Properties
| Name | Property Type | Summary |
|---|---|---|
| CanRead | bool |
Inherited from DelegatingStream
|
| CanSeek | bool |
Inherited from DelegatingStream
|
| CanTimeout | bool |
Inherited from DelegatingStream
|
| CanWrite | bool |
Inherited from DelegatingStream
|
| Length | long |
Inherited from DelegatingStream
|
| Position | long |
Inherited from DelegatingStream
|
| ReadTimeout | int |
Inherited from DelegatingStream
|
| Stream | Stream |
Inherited from DelegatingStream
|
| WriteTimeout | int |
Inherited from DelegatingStream
|