mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
Removing Utils directory to better match namespaces
This commit is contained in:
57
ICD.Common.Utils/IcdEnvironment.cs
Normal file
57
ICD.Common.Utils/IcdEnvironment.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
|
||||
namespace ICD.Common.Utils
|
||||
{
|
||||
public static partial class IcdEnvironment
|
||||
{
|
||||
/// <summary>
|
||||
/// Enumeration to define the various runtime environments a SIMPL# module can run in.
|
||||
/// </summary>
|
||||
public enum eRuntimeEnvironment
|
||||
{
|
||||
SimplSharp,
|
||||
SimplSharpPro,
|
||||
Standard
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum for the Program Event Types
|
||||
/// </summary>
|
||||
public enum eProgramStatusEventType
|
||||
{
|
||||
Stopping,
|
||||
Paused,
|
||||
Resumed,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum for the Ethernet Event Types
|
||||
/// </summary>
|
||||
public enum eEthernetEventType
|
||||
{
|
||||
LinkDown,
|
||||
LinkUp,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enums for the Ethernet Adapter Type
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum eEthernetAdapterType
|
||||
{
|
||||
EthernetUnknownAdapter = 0,
|
||||
EthernetLanAdapter = 1,
|
||||
EthernetCsAdapter = 2,
|
||||
EthernetWifiAdapter = 4,
|
||||
EthernetLan2Adapter = 8,
|
||||
}
|
||||
|
||||
public delegate void ProgramStatusCallback(eProgramStatusEventType type);
|
||||
|
||||
public delegate void EthernetEventCallback(eEthernetAdapterType adapter, eEthernetEventType type);
|
||||
|
||||
public static event ProgramStatusCallback OnProgramStatusEvent;
|
||||
|
||||
public static event EthernetEventCallback OnEthernetEvent;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user