AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ NewTransaction()

virtual void drama::MessageEventHandler::NewTransaction ( DitsMsgType  msgType,
DitsTransIdType  tid 
)
overridevirtualinherited

This method is invoked each time a message is initiated.

This method can be used to access the DITS transaction id of the messages which are sent. This is useful in some cases, such as when transaction might be orphaned but will need to be handled, or, for example, if you might want to kick a spawnable action.

Note
When invoked, the DRAMA Lock is taken and the DRAMA context is that of the action (or UFACE context) the thread was running in. Since the lock is taken, don't do anything which waits.
Parameters
msgTypeThe DITS Type of the message that was sent.
tidThe DITS transaction id.

Reimplemented in drama::IsRunningType.