Interface ISupervisionReservation
- Namespace
- AppHealthMonitor
- Assembly
- AppHealthMonitor.dll
A held place in a running monitoring cycle. See TryReserveRevival(string, out string).
public interface ISupervisionReservation : IDisposable
- Inherited Members
Remarks
Disposal releases the hold. It is safe, and required, to dispose a reservation whether or not Resume(Task) was called: a reservation released without a monitoring task simply lets the cycle carry on as it would have.
Properties
IsSupervisionAvailable
Gets whether the cycle this reservation belongs to can still supervise. False once the cycle or the daemon has been cancelled, at which point the caller must not launch.
bool IsSupervisionAvailable { get; }
Property Value
Methods
Resume(Task)
Hands a monitoring task back to the cycle, which then awaits it like any other monitor's.
void Resume(Task monitoringTask)
Parameters
monitoringTaskTaskThe running monitoring loop to supervise.