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

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