IAsyncDisposableExtended extensions.
More...
|
| static void | ThrowIfDisposed (this IAsyncDisposableExtended obj) |
| | Throw ObjectDisposedException if API is disposed. More...
|
| |
|
static async Task | DisposeAsyncLogErrors (this IAsyncDisposableExtended asyncDisposable) |
| | DisposeAsync should never throw exceptions. However, bugs can happen, so in situation when there is no exception handling above DisposeAsync call we can at least log errors.
|
| |
|
static void | DisposeAsyncLogErrorsFireAndForget (this IAsyncDisposableExtended asyncDisposable) |
| | Starts DisposeAsyncLogErrors in a new task to make sure no deadlocks occur in complex disposal scenarios.
|
| |
◆ ThrowIfDisposed()
Throw ObjectDisposedException if API is disposed.
- Exceptions
-