It should be noted that there isn't always an HttpContext
available during global events.
Since this customization is happening in global events, if you need the custom module that these events execute from to work in both the Administration and ASPNET Core apps, I'd recommend using RestSharp for HTTP requests, since it works find with .NET Standard 2.0.