Interface IReliabilityService
An interface that encapsulates all of the data related to platform reliability
Assembly: Meadow.Contracts.dll
View Source
public interface IReliabilityService
Properties
LastBootWasFromCrash
Returns true is the last device boot followed a crash
View Source
bool LastBootWasFromCrash { get; }
IsCrashDataAvailable
Returns if there is crash data available
View Source
bool IsCrashDataAvailable { get; }
LastResetReason
Gets the last system reset reason
View Source
ResetReason LastResetReason { get; }
SystemResetCount
Gets the total number of times the system has been reset
View Source
int SystemResetCount { get; }
SystemPowerCycleCount
Gets the total number of times the system has been power cycled
View Source
int SystemPowerCycleCount { get; }
UpTime
Gets the total time the device has been up since last reset or power cycle
View Source
TimeSpan UpTime { get; }
Methods
GetStartupMessages()
Retrieves any messages generated by the Meadow host OS prior to starting the Meadow stack
View Source
IEnumerable<PlatformOsMessage>? GetStartupMessages()
Returns
System.Collections.Generic.IEnumerable<Meadow.PlatformOsMessage>
GetCrashData()
Gets all existing crash report data
View Source
string[] GetCrashData()
Returns
System.String[]: A list (typically with a length of 0 or 1) of on-device crash reports
ClearCrashData()
Erases all existing crash report data
View Source
void ClearCrashData()
OnMeadowSystemError(MeadowSystemErrorInfo)
Override this method to provide specific behaviors when System Errors occur
View Source
void OnMeadowSystemError(MeadowSystemErrorInfo errorInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.MeadowSystemErrorInfo | errorInfo | The MeadowSystemErrorInfo describing the error details |
OnBootFromCrash()
Override this method to provide specific behaviors the device boots after a crash
View Source
void OnBootFromCrash()
Events
MeadowSystemError
This event is raised in the event that an exception or error occurs outside of the managed stack, such as with a coprocessor
View Source
event MeadowSystemErrorHandler MeadowSystemError