LoggerSwallowAsync Method |
Name | Description | |
---|---|---|
SwallowAsync(FuncTask) |
Runs async action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method.
| |
SwallowAsyncTResult(FuncTaskTResult) |
Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level.
The exception is not propagated outside of this method; a default value is returned instead.
| |
SwallowAsync(Task) |
Returns a task that completes when a specified task to completes. If the task does not run to completion, an exception is logged at Error level. The returned task always runs to completion.
| |
SwallowAsyncTResult(FuncTaskTResult, TResult) |
Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level.
The exception is not propagated outside of this method; a fallback value is returned instead.
|