Skip to main content

Interface IReliabilityService

An interface that encapsulates all of the data related to platform reliability

Assembly: Meadow.Contracts.dll​
View Source​
Declaration
public interface IReliabilityService

Properties​

LastBootWasFromCrash​

Returns true is the last device boot followed a crash

View Source​
Declaration
bool LastBootWasFromCrash { get; }

IsCrashDataAvailable​

Returns if there is crash data available

View Source​
Declaration
bool IsCrashDataAvailable { get; }

LastResetReason​

Gets the last system reset reason

View Source​
Declaration
ResetReason LastResetReason { get; }

SystemResetCount​

Gets the total number of times the system has been reset

View Source​
Declaration
int SystemResetCount { get; }

SystemPowerCycleCount​

Gets the total number of times the system has been power cycled

View Source​
Declaration
int SystemPowerCycleCount { get; }

UpTime​

Gets the total time the device has been up since last reset or power cycle

View Source​
Declaration
TimeSpan UpTime { get; }

Methods​

GetStartupMessages()​

Retrieves any messages generated by the Meadow host OS prior to starting the Meadow stack

View Source​
Declaration
IEnumerable<PlatformOsMessage>? GetStartupMessages()
Returns​

System.Collections.Generic.IEnumerable<Meadow.PlatformOsMessage>

GetCrashData()​

Gets all existing crash report data

View Source​
Declaration
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​
Declaration
void ClearCrashData()

OnMeadowSystemError(MeadowSystemErrorInfo)​

Override this method to provide specific behaviors when System Errors occur

View Source​
Declaration
void OnMeadowSystemError(MeadowSystemErrorInfo errorInfo)
Parameters​
TypeNameDescription
Meadow.MeadowSystemErrorInfoerrorInfoThe MeadowSystemErrorInfo describing the error details

OnBootFromCrash()​

Override this method to provide specific behaviors the device boots after a crash

View Source​
Declaration
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​
Declaration
event MeadowSystemErrorHandler MeadowSystemError
Event Type​

Meadow.MeadowSystemErrorHandler