Chronos Plugins  5.2.0
This documentation covers the plugin interfaces definitions and an example implementation.
AxelSemrau.Chronos.Plugin.Helpers Class Reference

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

Properties

static Version ApiVersion = new Version(1,0,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: More...
 
static IGuiHelper Gui [get, set]
 Utility functions for window handling More...
 
static IDebugHelper Debug [get, set]
 Utility functions for debugging More...
 
static IConfigInfo Config [get, set]
 Information about general program configuration, standard folders and similar. More...
 
static IEnumerable< IDeviceInfoDevices [get, set]
 
static IUtilityFactories UtilityFactories [get, set]
 Helper class factories, see the members for details. More...
 
static IStorageInspector Storage [get, set]
 Inspect stored data like methods... More...
 
static IConsumables Consumables [get, set]
 Access to consumables managers, if they are present. More...
 
static ILicenseChecker LicenseChecker [get, set]
 Helps optional Chronos components understand their environment. More...
 
static ResourceDictionary WpfResources = new ChronosResources() [get]
 Resources for WPF controls that should make it easier to keep a common look and feel. More...
 
static IEnumerable< IAcquisitionServiceBaseAcquisitionServices [get, set]
 Available acquisition service instances. More...
 

Detailed Description

Static instance for access to utility functions and resources.

Definition at line 79 of file Helpers.cs.

Property Documentation

◆ AcquisitionServices

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

Available acquisition service instances.

Definition at line 146 of file Helpers.cs.

146 { get; internal set; }

◆ ApiVersion

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

89 { get; } = new Version(1,0,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 104 of file Helpers.cs.

104 { 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 127 of file Helpers.cs.

127 { get; internal set; }

◆ Debug

IDebugHelper AxelSemrau.Chronos.Plugin.Helpers.Debug
staticgetset

◆ Devices

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

Definition at line 109 of file Helpers.cs.

109 { get; internal set; }

◆ Gui

◆ LicenseChecker

ILicenseChecker AxelSemrau.Chronos.Plugin.Helpers.LicenseChecker
staticgetset

Helps optional Chronos components understand their environment.

Definition at line 132 of file Helpers.cs.

132 { get; internal set; }

◆ Storage

IStorageInspector AxelSemrau.Chronos.Plugin.Helpers.Storage
staticgetset

Inspect stored data like methods...

To be extended on demand.

Definition at line 122 of file Helpers.cs.

122 { get; internal set; }

◆ UtilityFactories

IUtilityFactories AxelSemrau.Chronos.Plugin.Helpers.UtilityFactories
staticgetset

Helper class factories, see the members for details.

Definition at line 114 of file Helpers.cs.

114 { 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 140 of file Helpers.cs.

140 { get; } = new ChronosResources();

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