Forum Discussion
Dong_Yan
Feb 25, 2022Copper Contributor
.NET6的mini api中,一个接口中,如何使用ActionFilterAttribute拦截器
在.NET6的mini api中,一个接口中,如何使用ActionFilterAttribute拦截器 例如,如下图,我定义了一个拦截器Filter,然后在我的接口GetWeatherForecast如代码中使用,但是这个拦截器好像并不会生效 using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;...
LanHuang
Feb 28, 2022Former Employee
HI Dong_Yan,
Thanks for posting your issue here.
However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
Best Regards,
Lan Huang