Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<value>Cannot stop '{0}' service on computer '{1}'.</value>
</data>
<data name="Timeout" xml:space="preserve">
<value>Time out has expired and the operation has not been completed.</value>
<value>The operation requested for service '{0}' has not been completed within the specified time interval.</value>
</data>
<data name="PlatformNotSupported_ServiceController" xml:space="preserve">
<value>ServiceController enables manipulating and accessing Windows services and it is not applicable for other operating systems.</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ public void WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeou
while (Status != desiredStatus)
{
if (DateTime.UtcNow - start > timeout)
throw new System.ServiceProcess.TimeoutException(SR.Timeout);
throw new System.ServiceProcess.TimeoutException(SR.Format(SR.Timeout, ServiceName));

_waitForStatusSignal.WaitOne(250);
Refresh();
Expand Down