示例#1
0
 /// <inheritdoc/>
 protected override Task <TResult> ImplementationAsync <TResult>(Func <Context, CancellationToken, Task <TResult> > action, Context context, CancellationToken cancellationToken, bool continueOnCapturedContext)
 {
     return(LoggingEngine.ImplementationAsync(
                action,
                context,
                continueOnCapturedContext,
                this.ExceptionPredicates,
                ResultPredicates <TResult> .None,
                this._loggerProvider,
                (logger, ctx, delegateResult) => this._logAction(logger, ctx, delegateResult.Exception),
                cancellationToken));
 }
示例#2
0
 /// <inheritdoc/>
 protected override TResult Implementation <TResult>(Func <Context, CancellationToken, TResult> action, Context context, CancellationToken cancellationToken)
 {
     return(LoggingEngine.Implementation(
                action,
                context,
                this.ExceptionPredicates,
                ResultPredicates <TResult> .None,
                this._loggerProvider,
                (logger, ctx, delegateResult) => this._logAction(logger, ctx, delegateResult.Exception)
                ,
                cancellationToken));
 }