HandlerPriority()
ts
function HandlerPriority(): number;Returns the priority of the event-handler that triggered the execution of the currently running script.
NOTE
Handler priority determines the order in which event-handlers are executed when multiple handlers are registered for the same event. Handlers run in ascending order of priority, in other words a handler with priority 10 will run before a handler with priority 20.
Example
ts
{
var hpri = HandlerPriority();
Log("Handler priority is: " + hpri);
if (hpri < 10) {
// Perform special logic for high-priority handlers
}
}TIP
Handler priorities are set when configuring event-handlers in the Syncplify Server! administration interface.
