DelegateResult<TResult>
The captured outcome of executing an individual Func<TResult>
using System;
namespace Polly
{
public class DelegateResult<TResult>
{
private readonly TResult _result;
private readonly Exception _exception;
public TResult Result => _result;
public Exception Exception => _exception;
internal DelegateResult(TResult result)
{
_result = result;
}
internal DelegateResult(Exception exception)
{
_exception = exception;
}
}
}