|
|
|
@ -0,0 +1,19 @@
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.Abstractions;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.Filters;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.Response
|
|
|
|
|
{
|
|
|
|
|
public class TestResultFilter : Attribute, IAsyncActionFilter
|
|
|
|
|
{
|
|
|
|
|
public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
|
|
|
|
|
{
|
|
|
|
|
await next();
|
|
|
|
|
context.Result = new ObjectResult("TestResultFilter");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|