In this approach, we are going to create a static AppContext class. This class is going to hold the current Http session as a property called Current.
source https://www.c-sharpcorner.com/article/a-better-approach-to-access-httpcontext-outside-a-controller-in-net-core-2-1/
No comments:
Post a Comment