CompositeDisposable
A class in Alta.LifecycleManagement.Runtime, Alta.LifecycleManagement.
Thread-safe group of disposables that are disposed together. Anything added after it's disposed is disposed at once.
- Listed in Other Alta assemblies
- Inherits or implements
ICollection<IDisposable>,IEnumerable<IDisposable>,IEnumerable,IDisposable,ICancelable - Attributes
Preserve,UsedImplicitly
Constructors
| Member | What it is |
|---|---|
CompositeDisposable() | Creates a CompositeDisposable from disposables. |
CompositeDisposable(int capacity) | Creates a CompositeDisposable from disposables. |
CompositeDisposable(params IDisposable[] disposables) | Creates a CompositeDisposable from disposables. |
CompositeDisposable(IEnumerable<IDisposable> disposables) | Creates a CompositeDisposable from disposables. |
Fields
5 private and internal fields
Properties
| Member | What it is |
|---|---|
int Count { get; } | How many disposables are held. |
bool IsDisposed { get; } | Whether Dispose has been called. |
bool IsReadOnly { get; } | Always false. |