What is an analog of request.Properties in ASP.NET 5

后端 未结 1 1517
Happy的楠姐
Happy的楠姐 2021-01-18 08:08

In WebApi2 it was common to put arbitrary objects into HttRequestMessage.Properties. Usually it was doing with extension-methods like request.SetUserRight

相关标签:
1条回答
  • 2021-01-18 08:30

    HttpContext class has Items property which you can use for this purpose.

    0 讨论(0)
提交回复
热议问题