PsTypeEventListenerTSetTypeHandler Method
Sets Actions on the filtered objects, filter and Wait handler.
Namespace: TCX.ConfigurationAssembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
public void SetTypeHandler(
Action<T> update,
Action<T> insert,
Action<T, int> delete,
Func<T, bool> filter = null,
Func<int, bool> Wait = null
)
Parameters
- update ActionT
- insert ActionT
- delete ActionT, Int32
- receives RecID and object.
For the DN based and Gateway based objects, delete action is launched for base type of the object which cannot be converted to deriver interface.
If Application need to know the exact type of such objects it (the application) should implement own dictionary for last received snapshot of specified id (ID
and use captured object state with RecID delivered by deleted notification instead of the object (usually null) delivered by the event.
- filter FuncT, Boolean (Optional)
- Wait FuncInt32, Boolean (Optional)