ASP.Core Pass serviceprovider to constructor of custom AuthorizeAttribute

前端 未结 0 964
一整个雨季
一整个雨季 2020-11-29 18:41

Is there a way to pass a service provider to constructor of custom attribute, along with other parameters. I would like to use the service provider to get the dbcontext.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题