C# Class NuGetGallery.Monitoring.MonitorSet

A collection of monitors to run at a specific interval
显示文件 Open project: JetBrains/NuGetOperations Class Usage Examples

Public Methods

Method Description
MonitorSet ( string name, System.TimeSpan period ) : System
MonitorSet ( string name, System.TimeSpan period, IEnumerable monitors ) : System
Run ( IEventReporter reporter, CancellationToken cancelToken ) : Task

Starts running the monitor.

Method Details

MonitorSet() public method

public MonitorSet ( string name, System.TimeSpan period ) : System
name string
period System.TimeSpan
return System

MonitorSet() public method

public MonitorSet ( string name, System.TimeSpan period, IEnumerable monitors ) : System
name string
period System.TimeSpan
monitors IEnumerable
return System

Run() public method

Starts running the monitor.
public Run ( IEventReporter reporter, CancellationToken cancelToken ) : Task
reporter IEventReporter An object used to report status to the underlying monitoring infrastructure
cancelToken System.Threading.CancellationToken A token used to cancel the monitoring operation
return Task