Provides convenience extensions for work results.
More...
|
static IEnumerable< T > | Results< T > (this IEnumerable< WorkResult< T > > workResults) |
| Provides a convenience method into retrieving all result values from a collection of WorkResults. If any exceptions are encountered, an AggregateException will be thrown.
|
static IEnumerable< T > | Results< T > (this IEnumerable< WorkResult< T > > workResults, ErrorStrategies errorStrategy) |
| Provides a convenience method into retrieving all result values from a collection of WorkResults. If any exceptions are encountered and not suppressed, an AggregateException will be thrown.
|
static Exception[] | Errors< T > (this IEnumerable< WorkResult< T > > workResults) |
| Retrieve just the errors from a collection of WorkResults.
|
Provides convenience extensions for work results.
◆ Errors< T >()
Exception[] PeanutButter.Utils.WorkResultExtensions.Errors< T > |
( |
this IEnumerable< WorkResult< T > > | workResults | ) |
|
|
static |
Retrieve just the errors from a collection of WorkResults.
- Parameters
-
- Template Parameters
-
- Returns
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/WorkResultExtensions.cs