/// <summary> /// Initializes a new instance of the ProcessCanceledEventArgs class. /// </summary> /// <param name="daemonName">The name of the daemon.</param> /// <param name="reason">Reason of the cancellation.</param> /// <param name="fullPath">Full path.</param> /// <param name="queuedProcesses">Number of queued processes on the controller.</param> /// <exception cref="ArgumentNullException">daemonName is null.</exception> /// <exception cref="ArgumentException">queued processes value cannot be less than zero.</exception> public ProcessCanceledEventArgs(string daemonName, ProcessCanceledReason reason, string fullPath, int queuedProcesses) { if (daemonName == null) { throw new ArgumentNullException("daemonName", Resources.ArgumentNullException); } if (fullPath == null) { throw new ArgumentNullException("fullPath", Resources.ArgumentNullException); } if (queuedProcesses < 0) { throw new ArgumentException(Resources.ArgumentExceptionValueCannotBeLessThanZero, "queuedProcesses"); } _daemonName = daemonName; _reason = reason; _fullPath = fullPath; _queuedProcesses = queuedProcesses; }