Chronos Plugins 5.4.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 Version(1,3,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 dealing with assemblies in different locations.
 

Detailed Description

Static instance for access to utility functions and resources.

Definition at line 77 of file Helpers.cs.

Property Documentation

◆ AcquisitionServices

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

Available acquisition service instances.

Definition at line 144 of file Helpers.cs.

144{ get; internal set; }

◆ ApiVersion

Version AxelSemrau.Chronos.Plugin.Helpers.ApiVersion = new Version(1,3,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 87 of file Helpers.cs.

87{ get; } = new Version(1,3,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 102 of file Helpers.cs.

102{ 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 125 of file Helpers.cs.

125{ get; internal set; }

◆ Debug

IDebugHelper AxelSemrau.Chronos.Plugin.Helpers.Debug
staticgetset

◆ Devices

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

Definition at line 107 of file Helpers.cs.

107{ get; internal set; }

◆ Gui

◆ LicenseChecker

ILicenseChecker AxelSemrau.Chronos.Plugin.Helpers.LicenseChecker
staticgetset

Helps optional Chronos components understand their environment.

Definition at line 130 of file Helpers.cs.

130{ get; internal set; }

◆ LoadPathExtender

ILoadPathExtender AxelSemrau.Chronos.Plugin.Helpers.LoadPathExtender
staticgetset

Helps dealing with assemblies in different locations.

Definition at line 148 of file Helpers.cs.

148{ get; internal set; }

◆ Storage

IStorageInspector AxelSemrau.Chronos.Plugin.Helpers.Storage
staticgetset

Inspect stored data like methods...

To be extended on demand.

Definition at line 120 of file Helpers.cs.

120{ get; internal set; }

◆ UtilityFactories

IUtilityFactories AxelSemrau.Chronos.Plugin.Helpers.UtilityFactories
staticgetset

Helper class factories, see the members for details.

Definition at line 112 of file Helpers.cs.

112{ 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 138 of file Helpers.cs.

138{ get; } = new ChronosResources();

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