Stop AppDomain Timeout
I am developing a WPF app that executes code in a separate appdomain. I've noticed that the appdomain times out and terminates after 6 minutes. After doing some research, I discovered that the lease on the connection expires after 6 minutes.
*** P_Exception.GetType : System.Runtime.Remoting.RemotingException
*** Message : Object '/27e4129e_033b_46af_8822_38bf75745b2f/og_uk3rcfzteewc9vfcp1qgl_5.rem' has been disconnected or does not exist at the server.
I do not want the appdomain to terminate until the main appdomain does, or until there is a call to the Unload method. I cannot find anything in the documentation on how to shut off the timeout, or set it to infinity.
To be clear: The appdomain comes up and runs as expected without any errors, and everything is running on the local machine: There are no servers involved as everything is running on the local machine.
Any assistance with this would be appreciated.