Hello community.
what is best practice approach (if existent) to the following problem:
I am using a C# HttpClient in D365. According to the remarks it should be only created once and reused throughout the apllication in order to prevent SocketException errors. I want to approach the problem with the singleton pattern but the implementation of the singleton pattern in D365 is per user session.
My question is:
What is an threadsafe approach to make the C# HttpClient class in D365 application wide avaible and only instantiate it at maximum once (maybe SysGlobal*)?
Thanks in advance and have a nice day,
Oliver