// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Diagnostics;
usingSystem.Linq;
namespaceProcessWatchdog
{
/// <summary>
/// Keeps track of a process and all its descendants.
/// </summary>
internalclassProcessTracker:IDisposable
{
privateList<TrackedProcess>_trackedProcesses;
privatereadonlyProcDump_procDump;
/// <summary>
/// Initializes a new instance of the <see cref="ProcessTracker"/> class from the
/// specified process id.
/// </summary>
/// <param name="parentProcess">
/// The process whose descendants are to be tracked.
/// </param>
/// <param name="procDump">
/// Object responsible for producing memory dumps of any tracked processes that
/// Looks up a localized string similar to The process {0} ({1}) exceeded the time limit of {2} seconds and will be terminated..
/// Looks up a localized string similar to The process {0} ({1}) or one of its descendants exceeded the time limit of {2} seconds. This process and all its descendants will be terminated..
/// </summary>
internalstaticstringErrorProcessTimedOut{
get{
...
...
@@ -151,7 +151,7 @@ internal class Resources {
}
/// <summary>
/// Looks up a localized string similar to Terminating process {0} ({1}) and saving crash dump to file {2}....
/// Looks up a localized string similar to Terminating process {0} and saving crash dump to file {1}....
<value>The process {0} ({1}) exceeded the time limit of {2} seconds and will be terminated.</value>
<value>The process {0} ({1}) or one of its descendants exceeded the time limit of {2} seconds. This process and all its descendants will be terminated.</value>