Class DeviceSource
The base class for DeviceSourcePortable implementations
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DelsysAPI.DelsysDevices
Assembly: DelsysAPI.dll
Syntax
public class DeviceSource : IDeviceSource
Constructors
DeviceSource(String, String)
Initializes the Hardware Device manager
Declaration
public DeviceSource(string key, string license)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | string API key for the product |
| System.String | license | string with the license key for the product |
Properties
Key
The API product Key supplied to you.
Declaration
public string Key { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
License
The API product License supplied to you.
Declaration
public string License { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetDataSource(SourceType)
Retrieve a datasource of the requested type
Declaration
public virtual IDelsysDevice GetDataSource(SourceType type)
Parameters
| Type | Name | Description |
|---|---|---|
| SourceType | type | Source Type |
Returns
| Type | Description |
|---|---|
| IDelsysDevice |
SetDebugOutputStream(Action<String, Object[]>)
Sets the API's output stream to be the one supplied. Shows verbose output of what is happening internally while the API is running.
Declaration
public void SetDebugOutputStream(Action<string, object[]> debugOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<System.String, System.Object[]> | debugOptions | The output stream to write to (e.g Console.WriteLine) |