Garbage Collection, Static Fields, & Remoting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a Server Activated MarshalByRef Object Class that is being remoted from IIS. Lets call the Server Activate object Subcontracts. Subcontracts relies on a DLL file that contains a non-remoted class class that will hold static fields. Let's call this class SubcontractTypes. The static fields in SubcontractTypes will be filled from an XML file.

How will the .NET Framework handle the lifetime of these static fields in a remoting environment. If I fill these fields at application startup on the IIS side, once activated, will those values remain alive in IIS until the Web Site closes down or is restarted

Thanks
 
Back
Top