Distinguishing Shadow Transactions from Reader Processes

As all processes running on the secondary server share the same node object, you can use the Process class type property to distinguish shadow (replaying) processes on a secondary server from reader processes.

The type property value of 5 indicates a shadow process (that is, a process replaying transactions on a secondary server), and can be tested for as follows.

if process.type = 5.Character then