Class ComposableAsyncDisposable
IAsyncDisposable implementation aggregating other IAsyncDisposable
Inheritance
System.Object
ComposableAsyncDisposable
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ComposableAsync
Assembly: ComposableAsync.Core.dll
Syntax
public sealed class ComposableAsyncDisposable : IAsyncDisposable
Constructors
| Improve this Doc View SourceComposableAsyncDisposable()
Build an empty ComposableAsyncDisposable
Declaration
public ComposableAsyncDisposable()
Methods
| Improve this Doc View SourceAdd<T>(T)
Add an IAsyncDisposable to the ComposableAsyncDisposable
and returns it
Declaration
public T Add<T>(T disposable)
where T : IAsyncDisposable
Parameters
Type | Name | Description |
---|---|---|
T | disposable |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
DisposeAsync()
Dispose all the resources asynchronously
Declaration
public Task DisposeAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |