I have an old .NET 4.8 Windows service that I am upgrading to .NET 9 and C#.
The application uses custom garbage collection to manage a high load of disposable objects. To do this it uses the LifetimeServices class in System.Runtime.Remoting.Lifetime.
Does anyone know if there is a replacement in .NET 9 ? Unfortunately, standard garbage collection is not applicable.
Edit: this is not a web application; I'm hoping that net 9 has an equivalent built in and I don't need handle object leases. The standard garbage collector cleanup period is too long.