dodyg/practical-aspnetcore

Create sample for RequestTimeout attribute

dodyg opened this issue · 2 comments

Hi @dodyg. could you please show the code to use the RequestTimeout attribute?
already registered the service using builder.Services.AddRequestTimeouts() and app.UseRequestTimeouts(). but when I try to use the attribute in the controller, it doesn't seems to work

[RequestTimeout(milliseconds: 1)]
public override IActionResult GetList()
{
//...
}