Skip to main content

Class Resolver

Static container for common and user-supplied application services

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

Properties

Services

A ServiceCollection instance

View Source
Declaration
public static ServiceCollection Services { get; }

App

Retrieves the currently executing IApp instance

View Source
Declaration
public static IApp App { get; }

Device

Retrieves the current IMeadowDevice the app is running on

View Source
Declaration
public static IMeadowDevice Device { get; }

Log

Retrieves the current Logger instance

View Source
Declaration
public static Logger Log { get; }

UpdateService

Retrieves the current IUpdateService instance

View Source
Declaration
public static IUpdateService UpdateService { get; }

SensorService

Retrieves the current ISensorService instance

View Source
Declaration
public static ISensorService SensorService { get; }

MeadowCloudService

Retrieves the current IMeadowCloudService instance

View Source
Declaration
public static IMeadowCloudService MeadowCloudService { get; }

CommandService

Retrieves the current ICommandService instance

View Source
Declaration
public static ICommandService CommandService { get; }

JsonSerializer

Retrieves the current IJsonSerializer instance

View Source
Declaration
public static IJsonSerializer JsonSerializer { get; }