Class WatcherOptions
- Namespace
- Cuemon.Runtime
- Assembly
- Cuemon.Core.dll
Configuration options for IWatcher.
public class WatcherOptions : IParameterObject
- Inheritance
-
WatcherOptions
- Implements
- Derived
Constructors
WatcherOptions()
Initializes a new instance of the WatcherOptions class.
public WatcherOptions()
Remarks
The following table shows the initial property values for an instance of WatcherOptions.
Property | Initial Value |
---|---|
DueTime | TimeSpan.Zero |
DueTimeOnChanged | TimeSpan.Zero |
Period | TimeSpan.FromMinutes(2) |
Properties
DueTime
Gets or sets the TimeSpan representing the amount of time to delay before the IWatcher starts signaling.
public TimeSpan DueTime { get; set; }
Property Value
Remarks
Specify negative one (-1) milliseconds to prevent the signaling from starting. Specify zero (0) to start the signaling immediately.
DueTimeOnChanged
Gets or sets the amount of time to postpone a Changed event.
public TimeSpan DueTimeOnChanged { get; set; }
Property Value
Remarks
Specify zero (0) to disable postponing.
Period
Gets or sets the time interval between periodic signaling.
public TimeSpan Period { get; set; }
Property Value
Remarks
Specify negative one (-1) milliseconds to disable periodic signaling.