Chronos Plugins 5.11.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
AxelSemrau.Chronos.Plugin.Helpers Class Reference

Static instance for access to utility functions and resources. More...

Properties

static Version ApiVersion = new(1,5,0) [get]
 From Chronos 5.2 on: A plugin API version you can check if you want to give understandable error messages in case of mismatch. This is NOT the Chronos version, and it is incremented in the sense of semantic versioning:
static IGuiHelper Gui [get, set]
 Utility functions for window handling.
static IDebugHelper Debug [get, set]
 Utility functions for debugging.
static IConfigInfo Config [get, set]
 Information about general program configuration, standard folders and similar.
static IEnumerable< IDeviceInfoDevices [get, set]
static IUtilityFactories UtilityFactories [get, set]
 Helper class factories, see the members for details.
static IStorageInspector Storage [get, set]
 Inspect stored data like methods...
static IConsumables Consumables [get, set]
 Access to consumables managers, if they are present.
static ILicenseChecker LicenseChecker [get, set]
 Helps optional Chronos components understand their environment.
static ResourceDictionary WpfResources = new ChronosResources() [get]
 Resources for WPF controls that should make it easier to keep a common look and feel.
static IEnumerable< IAcquisitionServiceBaseAcquisitionServices [get, set]
 Available acquisition service instances.
static ILoadPathExtender LoadPathExtender [get, set]
 Helps to deal with assemblies in different locations.
static ISecurity Security [get, set]
 Gives access to security related functions.

Detailed Description

Static instance for access to utility functions and resources.

Definition at line 78 of file Helpers.cs.

Property Documentation

◆ AcquisitionServices

IEnumerable<IAcquisitionServiceBase> AxelSemrau.Chronos.Plugin.Helpers.AcquisitionServices
staticgetset

Available acquisition service instances.

Definition at line 145 of file Helpers.cs.

145{ get; internal set; }

◆ ApiVersion

Version AxelSemrau.Chronos.Plugin.Helpers.ApiVersion = new(1,5,0)
staticget

From Chronos 5.2 on: A plugin API version you can check if you want to give understandable error messages in case of mismatch. This is NOT the Chronos version, and it is incremented in the sense of semantic versioning:

  • Major = Breaking changes
  • Minor = New feature
  • Build = Only bugfixes, no API change.

Definition at line 88 of file Helpers.cs.

88{ get; } = new(1,5,0);

◆ Config

IConfigInfo AxelSemrau.Chronos.Plugin.Helpers.Config
staticgetset

Information about general program configuration, standard folders and similar.

summary> Information about configured devices and their states /summary>

Definition at line 103 of file Helpers.cs.

103{ get; internal set; }

Referenced by MockPlugin.Tasks.DumpConfigInfo.Execute().

◆ Consumables

IConsumables AxelSemrau.Chronos.Plugin.Helpers.Consumables
staticgetset

Access to consumables managers, if they are present.

Definition at line 126 of file Helpers.cs.

126{ get; internal set; }

◆ Debug

IDebugHelper AxelSemrau.Chronos.Plugin.Helpers.Debug
staticgetset

◆ Devices

IEnumerable<IDeviceInfo> AxelSemrau.Chronos.Plugin.Helpers.Devices
staticgetset

Definition at line 108 of file Helpers.cs.

108{ get; internal set; }

◆ Gui

◆ LicenseChecker

ILicenseChecker AxelSemrau.Chronos.Plugin.Helpers.LicenseChecker
staticgetset

Helps optional Chronos components understand their environment.

Definition at line 131 of file Helpers.cs.

131{ get; internal set; }

◆ LoadPathExtender

ILoadPathExtender AxelSemrau.Chronos.Plugin.Helpers.LoadPathExtender
staticgetset

Helps to deal with assemblies in different locations.

Definition at line 149 of file Helpers.cs.

149{ get; internal set; }

◆ Security

ISecurity AxelSemrau.Chronos.Plugin.Helpers.Security
staticgetset

Gives access to security related functions.

Definition at line 153 of file Helpers.cs.

153{ get; internal set; }

◆ Storage

IStorageInspector AxelSemrau.Chronos.Plugin.Helpers.Storage
staticgetset

Inspect stored data like methods...

To be extended on demand.

Definition at line 121 of file Helpers.cs.

121{ get; internal set; }

◆ UtilityFactories

IUtilityFactories AxelSemrau.Chronos.Plugin.Helpers.UtilityFactories
staticgetset

Helper class factories, see the members for details.

Definition at line 113 of file Helpers.cs.

113{ get; internal set; }

Referenced by MockPlugin.Misc.MockLicenseCheckAttribute.CheckLicense().

◆ WpfResources

ResourceDictionary AxelSemrau.Chronos.Plugin.Helpers.WpfResources = new ChronosResources()
staticget

Resources for WPF controls that should make it easier to keep a common look and feel.

You should add this in the constructor of your WPF elements to the Resources.MergedDictionaries. Do not refer to this using a pack:// URI, this can cause problems during debugging and will miss runtime updates.

Definition at line 139 of file Helpers.cs.

139{ get; } = new ChronosResources();

The documentation for this class was generated from the following file: