Class TypesUtils
- Namespace
- adas_core.Infrastructure.Utils
- Assembly
- adas-core.Infrastructure.dll
Provides static utility methods for working with types.
public static class TypesUtils
- Inheritance
-
TypesUtils
- Inherited Members
Methods
GetDriver(string, string)
Retrieves the driver Type associated with the specified device type and device. Supports "Relay" (mapped to adas-core.module.Relays) and "LightBeacon" (mapped to adas-core.module.LightBeacons) device types.
public static Type GetDriver(string deviceType, string device)
Parameters
deviceTypestringThe category of the device used to determine the appropriate driver type.
devicestringThe specific device identifier used when resolving the driver type.
Returns
Exceptions
- AdasException
Thrown when the provided
deviceTypeis not a recognized value.