Exemple #1
0
        public virtual Task OnExceptionAsync(RpcActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
        {
            try
            {
                OnException(actionExecutedContext);
            }
            catch (Exception ex)
            {
                return(TaskHelpers.FromError(ex));
            }

            return(TaskHelpers.Completed());
        }
Exemple #2
0
 private async Task ExecuteExceptionFilterAsyncCore(RpcActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
 {
     await OnExceptionAsync(actionExecutedContext, cancellationToken);
 }
Exemple #3
0
 Task IExceptionFilter.ExecuteExceptionFilterAsync(RpcActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
 {
     Check.NotNull(actionExecutedContext, "actionExecutedContext");
     return(ExecuteExceptionFilterAsyncCore(actionExecutedContext, cancellationToken));
 }
Exemple #4
0
 public virtual void OnException(RpcActionExecutedContext actionExecutedContext)
 {
 }