ResourceMonitor Class

Monitors the current state of a resource.

Inheritance Hierarchy

Syntax

public class ResourceMonitor : Inedo.Diagnostics.ILogSink

Constructors

Name Description
ResourceMonitor

Initializes a new instance of the ResourceMonitor class.

Events

Name Description
MessageLogged

Raised when a message is logged.

Properties

Name Description
ResourceType

Gets the Inedo.Extensibility.SecureResources.SecureResource type that can be monitored by this type.

ResourceTypeDisplayName

Returns a user-friendly type display name of the ResourceType.

StateType

Gets the ResourceMonitorState type that Inedo.Extensibility.ResourceMonitors.ResourceMonitor.GetCurrentStatesAsync(Inedo.Extensibility.ResourceMonitors.IResourceMonitorContext,System.Threading.CancellationToken) will return.

Methods

Name Description
GetCurrentStatesAsync(IResourceMonitorContext context, System.Threading.CancellationToken cancellationToken)
GetDescription

Returns a friendly description of the monitor and its configuration.

Log(Inedo.Diagnostics.IMessage message)

Remarks

Implementors should inherit from ResourceMonitor<TState, TResource> if a Inedo.Extensibility.SecureResources.SecureResource is consumed.

The monitored resource is generally a Inedo.Extensibility.SecureResources.SecureResource. Existing monitors (implemented inside of BuildMaster) include: