/// <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 recycle.</param>
 /// <exception cref="ArgumentNullException">daemonName is null.</exception>
 public FileWatcherRecycledEventArgs(string daemonName,
     RecycleReason reason)
 {
     if (daemonName == null)
     {
         throw new ArgumentNullException("daemonName",
                                         Resources.ArgumentNullException);
     }
     _daemonName = daemonName;
     _reason = reason;
 }
Beispiel #2
0
 /// <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 recycle.</param>
 /// <exception cref="ArgumentNullException">daemonName is null.</exception>
 public FileWatcherRecycledEventArgs(string daemonName,
                                     RecycleReason reason)
 {
     if (daemonName == null)
     {
         throw new ArgumentNullException("daemonName",
                                         Resources.ArgumentNullException);
     }
     _daemonName = daemonName;
     _reason     = reason;
 }