How many AppDomains ....

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

Guest

hi there, I hope that someone will be able to shed some light on little old
confused me.

We are developing an application which will be deployed onto a Terminal
Server machine. The application will be used concurrently by multiple users.

We have a static object (which as you well know is only static per
AppDomain), -I think I've just figured out the answer to my question, but
perhaps some confirmation wouldn't go amiss-

The question is ... will each user have their own static object? ...

and I think the answer is yes, because static objects (I believe) are static
per AppDomain per process

If someone could confirm or deny I would appreciate it very much.

Thanks in advance
 
Hi Bill,

The application will run in a different process every time a different user runs your exe. All static members will be unique to
each process. AppDomains do not factor in here, unless you create your own AppDomains within your app's process. Your process can
host multiple AppDomains if you create them, but all resources and data, including static members, are isolated to the AppDomain in
which the Assembly that contains them is loaded.

I believe the high-level hierarchy looks like this:

User
Process (Your .exe visible in Task Manager)
AppDomains (one by default, per process)
Assemblies
Resources
Data
 
Back
Top