mirror of https://github.com/abpframework/abp.git
4 changed files with 37 additions and 1 deletions
@ -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"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue