Miner.Responder.WindowsService Assembly > Miner.Responder.WindowsService Namespace > Program Class : Stop Method |
The underlying Process.WaitForExit is based upon milliseconds, so the timeout value will be converted to total milliseconds. For most situations this isn't important, but is for understanding the behavior of boundary conditions.
You can specify a negative number for the timeout (in milliseconds), but it is treated by as a very large positive number. If you pass zero to the method, it returns true only if the process has already exited. The maximum is the largest possible value of a 32-bit integer, which represents infinity to the operating system.
Stop(TimeSpan.FromMinutes(5.0));
Stop(TimeSpan.FromMilliseconds(int.MaxValue));
Stop(TimeSpan.FromMilliseconds(0));
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.