PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.WorkResultExtensions Class Reference

Provides convenience extensions for work results. More...

Static Public Member Functions

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.

Detailed Description

Provides convenience extensions for work results.

Member Function Documentation

◆ Errors< T >()

Exception[] PeanutButter.Utils.WorkResultExtensions.Errors< T > ( this IEnumerable< WorkResult< T > > workResults)
static

Retrieve just the errors from a collection of WorkResults.

Parameters
workResults
Template Parameters
T
Returns

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/WorkResultExtensions.cs