In my .NET 8 Windows service I import a 3rd party DLL. Over time the service becomes sluggish (e.g. over 3-4 days of heavy use), and I want to eliminate this DLL as the cause (e.g. perhaps it has some internal counters or is holding onto something etc.).
What I would like to do is reset the DLL back to the state it was when the application started. Is there any way to do this?
This DLL is added to my project as an assembly, and from there I can interact with it directly from .NET.
A restart of the service does solve the problem, and this is just one avenue I am investigating.
4