How To Verify Service Has Started?

How can the client detect a service host is not running?

Just wondering because it may be possible the client tries to call the service and the service has yet to start or the computer the service is on may not even be powered.

[241 byte] By [EJonZ] at [2008-1-5]
# 1

Try calling a method. If you get CommunicationException/TimeoutException, then the service is probably not up.

(There is no real way to know; this is the best you can do.)

BrianMcNamara-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified