Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
AxelSemrau.Chronos.Plugin.IUtilityFactories Interface Reference

Helper factories for utility classes implemented within Chronos. More...

Public Member Functions

System.IO.Ports.SerialPort CreateSafeSerialPort ()
 Returns a modified serial port class instance that avoids some problems of the original component.
 
CreateViewModel< T > ()
 Create a working instance for one of the abstract classes in WPF/ViewModels.
 
CreateView< T > ()
 Create the standard view for one of the WPF/ViewModels classes.
 
IInspectJob CreateDummyJobInspector ()
 Needed by the CTC Task SDK.
 

Detailed Description

Helper factories for utility classes implemented within Chronos.

Definition at line 276 of file Helpers.cs.

Member Function Documentation

◆ CreateDummyJobInspector()

IInspectJob AxelSemrau.Chronos.Plugin.IUtilityFactories.CreateDummyJobInspector ( )

Needed by the CTC Task SDK.

Returns

◆ CreateSafeSerialPort()

System.IO.Ports.SerialPort AxelSemrau.Chronos.Plugin.IUtilityFactories.CreateSafeSerialPort ( )

Returns a modified serial port class instance that avoids some problems of the original component.

Contains currently a workaround for an "ObjectDisposedException" on a background thread that causes the whole program to crash on garbage collection. Happens only after some kinds of errors and not with all serial port types.

◆ CreateView< T >()

T AxelSemrau.Chronos.Plugin.IUtilityFactories.CreateView< T > ( )

Create the standard view for one of the WPF/ViewModels classes.

Template Parameters
T
Returns
Type Constraints
T :FrameworkElement 

◆ CreateViewModel< T >()

T AxelSemrau.Chronos.Plugin.IUtilityFactories.CreateViewModel< T > ( )

Create a working instance for one of the abstract classes in WPF/ViewModels.

Template Parameters
T
Returns
Type Constraints
T :class 

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