ASP.NET 5 DI app setting outside controller

后端 未结 4 985

I can DI app setting in the controller like this

 private IOptions appSettings;
 public CompanyInfoController(IOptions appS         


        
4条回答
  •  执笔经年
    2021-01-21 05:58

    If you want to DI to action filter reference to Action filters, service filters and type filters in ASP.NET 5 and MVC 6 service filter part.

提交回复
热议问题