C-DEngine 5.105

IBaseEngine..::..SetIsMiniRelay Method

Setting this flag to true tells the C-DEngine that this plugin does not contain any code and only relays properly scoped telegrams between nodes. This is very useful in scenarios where you have multiple relays on-premise that need to just relay telegrams but do not add any value/services to the telegrams. The C-DEngine supports a configuration setting in the APP.CONFIG that tells the C-DEngine just to relay telegrams with a certain topic:

<add key="RelayOnly" value="Topics Separated with;" />

For Example:

<add key="RelayOnly" value="CDMyInformation.TheInfoService" />

This setting would tell the C-DEngine to relay all telegrams tagged with "CDMyInformation.TheInfoService" to all other connected node.

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

Syntax


void SetIsMiniRelay(
	bool pIsRelay
)
Sub SetIsMiniRelay ( _
	pIsRelay As Boolean _
)
void SetIsMiniRelay(
	bool^ pIsRelay
)

Parameters

pIsRelay
Type: Boolean
If set to true, the C-DEngine will relay all telegrams tagged with the ClassName to connected nodes