scrutor

Filling User Id Field in Application Insights from ASP.NET Core

≯℡__Kan透↙ 提交于 2020-02-23 05:13:58
问题 I would like to be able to populate the User Id field in Application Insights with my real username data. This is an internal application, so privacy concerns with a simple username field are moot. As far as I can tell, all solutions available online for this strictly work in .NET Framework, not .NET Core. You can find this solution in a few places, including some old AI documentation on GitHub. However, when I run it, I get an error on startup indicating that dependency on the scoped object