Skip to main content

Class Resolver

Static container for common and user-supplied application services

Assembly: Meadow.Contracts.dll
View Source
public static class Resolver

Properties

Services

A ServiceCollection instance

View Source
public static ServiceCollection Services { get; }

App

Retrieves the currently executing IApp instance

View Source
public static IApp App { get; }

Device

Retrieves the current IMeadowDevice the app is running on

View Source
public static IMeadowDevice Device { get; }

Log

Retrieves the current Logger instance

View Source
public static Logger Log { get; }

UpdateService

Retrieves the current IUpdateService instance

View Source
public static IUpdateService UpdateService { get; }

SensorService

Retrieves the current ISensorService instance

View Source
public static ISensorService SensorService { get; }

MeadowCloudService

Retrieves the current IMeadowCloudService instance

View Source
public static IMeadowCloudService MeadowCloudService { get; }

CommandService

Retrieves the current ICommandService instance

View Source
public static ICommandService? CommandService { get; }