mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 03:57:08 +00:00
feat: Add Initialize method
This method is to be used for starting communications with a device, or other actions that aren't internal to the program.
This commit is contained in:
parent
a260446c8d
commit
ee7e5f1548
1 changed files with 8 additions and 1 deletions
|
|
@ -119,6 +119,13 @@ namespace PepperDash.Core
|
|||
/// <returns></returns>
|
||||
public virtual bool Deactivate() { return true; }
|
||||
|
||||
/// <summary>
|
||||
/// Call this method to start communications with a device. Overriding classes do not need to call base.Initialize()
|
||||
/// </summary>
|
||||
public virtual void Initialize()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Helper method to check object for bool value false and fire an Action method
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue