**public class HMACAuthenticationAttribute : Attribute, IAsyncAuthorizationFilter
{
public HMACAuthenticationAttribute(IUser user)
{
.....
}
}**
上面是我的类属性。我想在下面的控制器中调用它。有什么方法可以调用上面的类。
**[HMACAuthentication()]
public class WeatherForecastController : ControllerBase
{
}**