C#
VB
C++
Waits for the DICOM Service to reach the specified status or for the specified time-out to expire.
desiredStatus
The status to wait for.
timeout
A System.TimeSpan object specifying the amount of time to wait for the service to reach the specified status.
This is a blocking operation.
For an example refer to InstallService