When a Service starts, it runs in a single AppDomain just as any other .NET
executable (or an ASP.NET app as well).
However, a service, just like other app types, can create new AppDomains.
So theorectically, the answer would be "a service can create as many
appDomains as the environment (memory, threads, etc.) will permit.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Loki117" wrote:
I have a question which I just got asked in an interview. How many app
domains can a c# service have?
Any ideas?