Chronos Plugins  5.2.0
This documentation covers the plugin interfaces definitions and an example implementation.
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. More...
 
CreateViewModel< T > ()
 Create a working instance for one of the abstract classes in WPF/ViewModels. More...
 
CreateView< T > ()
 Create the standard view for one of the WPF/ViewModels classes. More...
 

Detailed Description

Helper factories for utility classes implemented within Chronos

Definition at line 259 of file Helpers.cs.

Member Function Documentation

◆ 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: