« WCF server startup slow on W2K3 in VM | Main | Defining KnownTypes in a configuration file »

09/05/2006

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Nicholas Paldino [.NET/C# MVP]

While services will more than likely have the same lifetime as an app-domain, they are in no way required to live for the life of the app-domain that they are in. You should expose a way to shut down a particular service as well.

Ingo Rammer

Absolutely. It just appears to me that, whenever you want to start/stop services on demand, you will quite likely have a need for more fine grained startup/shutdown behavior (only starting/stopping a subset of them depending on your runtime conditions). In this case, I would rely on ServiceHost as it exists today. Other than that, a CloseAllService() would be as simple as public static void CloseAllServices() { foreach (ServiceHost hst in _hosts) { hst.Close(); } } Cheers, -Ingo

Ujin

Absolutely. It just appears to me that, whenever you want to start/stop services on demand, you will quite likely have a need for more fine grained startup/shutdown a href=http://www.dornfall.combehavior/a

The comments to this entry are closed.