Table of Contents

Class WatcherOptions

Namespace
Cuemon.Runtime
Assembly
Cuemon.Core.dll

Configuration options for IWatcher.

public class WatcherOptions : IParameterObject
Inheritance
Object
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.

PropertyInitial Value
DueTimeTimeSpan.Zero
DueTimeOnChangedTimeSpan.Zero
PeriodTimeSpan.FromMinutes(2)

Properties

DueTime

Gets or sets the System.TimeSpan representing the amount of time to delay before the IWatcher starts signaling.

public TimeSpan DueTime { get; set; }

Property Value

TimeSpan

A System.TimeSpan representing the amount of time to delay before the IWatcher starts signaling.

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

TimeSpan

A System.TimeSpan representing the amount of time to postpone a Changed event.

Remarks

Specify zero (0) to disable postponing.

Period

Gets or sets the time interval between periodic signaling.

public TimeSpan Period { get; set; }

Property Value

TimeSpan

A System.TimeSpan representing the time interval between periodic signaling.

Remarks

Specify negative one (-1) milliseconds to disable periodic signaling.