C-DEngine 5.105

TheThingRegistry..::..RegisterEventOfDeviceType Method

Helper Function that allows registering for a special event on all Things of a given DeviceType This allows for Node Wide registration of certain known events of special DeviceTypes

Namespace:  nsCDEngine.Engines.ThingService
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static void RegisterEventOfDeviceType(
	string pEngineName,
	string pDeviceType,
	string pEventName,
	bool AllowRemoteThings,
	Action<ICDEThing, Object> pCallBack
)
Public Shared Sub RegisterEventOfDeviceType ( _
	pEngineName As String, _
	pDeviceType As String, _
	pEventName As String, _
	AllowRemoteThings As Boolean, _
	pCallBack As Action(Of ICDEThing, Object) _
)
public:
static void RegisterEventOfDeviceType(
	String^ pEngineName, 
	String^ pDeviceType, 
	String^ pEventName, 
	bool^ AllowRemoteThings, 
	Action<ICDEThing^, Object^>^ pCallBack
)

Parameters

pEngineName
Type: String
Engine of the Devices to look for
pDeviceType
Type: String
The Device type that will fire the event
pEventName
Type: String
The Event Name
AllowRemoteThings
Type: Boolean
Include Things on other Nodes
pCallBack
Type: Action<(Of <(<'ICDEThing, Object>)>)>
The callback to be called when the event fires