TaskPrerequisiteCheckResult reference
TaskPrerequisiteCheckResult
class represents the result of a scheduled task prerequisites check.
ScheduledTaskExtension has to return a value of TaskPrerequisiteCheckResult
when
Sana calls CheckPrerequisitesAsync method.
Fields
Available
Creates a result representing an available task state.
NotAvailable
Creates a result representing an unavailable task state.
Properties
MessageKey
The message key serves to provide additional context when the task is temporarily unavailable. This is a resource text key that can be used for localization.
TaskStatus
The availability status of the task (e.g., available, not available). For more information, see TaskAvailabilityStatus.
Methods
TemporaryNotAvailable
Creates a result representing a temporarily unavailable task state, with an explanatory message key. This method returns TaskPrerequisiteCheckResult indicating a temporarily unavailable state, using the provided message key to indicate the reason for unavailability.