Microsoft Transaction Server (MTS) version 1.5 is capable of generating Visual Studio Analyzer events. You can use these events to trace transaction interactions within your application.
Other Microsoft-supplied technologies are also capable of generating Visual Studio Analyzer events; see Microsoft Components That Generate Visual Studio Analyzer Events for a complete list.
Visual Studio Analyzer Events Generated by MTS
Event | Event description | Event data |
Begin Session | Indicates that MTS is present and ready to start generating events for a particular session. | Session name, where the name is the current process ID. |
MTS Disable Commit | Indicates that DisableCommit has been called on an object. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS object identity. Correlation ID. |
MTS Enable Commit | Indicates that EnableCommit has been called on an object. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS object identity. Correlation ID. |
MTS Set Complete | Indicates that SetComplete has been called on an object, and the object is now ready to be deactivated by MTS. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS object identity. Correlation ID. |
MTS Transaction Aborted | Indicates that a transaction has aborted. | Source machine, process, thread, component, and session. Handle to the component in the form of the transaction GUID. Correlation ID. |
MTS Transaction Prepared | Indicates that a transaction is preparing to commit, but has not actually committed yet. The MTS event system tracks only phase-one notifications of the two-phase commit protocol, so there is no notification for transaction commit. | Source machine, process, thread, component, and session. Handle to the component in the form of the transaction GUID. Correlation ID. |
MTS Transaction Start | Indicates that a transactional component has been created. This event occurs only once, when the "root" object of the transaction is created. Objects that inherit transaction context from the root object do not generate this event. | Source machine, process, thread, component, and session. Handle to the component in the form of the transaction GUID. Correlation ID. Transaction stream ID. |
Object Activate | Indicates that the object has been activated by MTS. This event occurs only if the object implements the IObjectControl interface. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS object identity. Correlation ID. |
Object Create | Indicates that an object has been created. This event will be generated only for objects with context. This means that the component must be registered as an MTS component and the object must be created using the MTS CreateInstance method. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS object identity. Correlation ID. |
Object Deactivate | Indicates that the object has been deactivated by MTS. This event occurs only if the object implements the IObjectControl interface. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS object identity. Correlation ID. |
Object Release | Indicates that an object has been released by MTS. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS object identity. Correlation ID. |
Package Activation | Indicates that an MTS package has been activated. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS package globally unique identifier (GUID). Correlation ID, for matching with Package Shutdown events. |
Package Shutdown | Indicates that an MTS package has shut down. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS package globally unique identifier (GUID). Correlation ID, for matching with Package Activation events. |
Resource Allocate | Indicates that a new resource managed by a resource dispenser has been assigned from the pool. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS resource ID. Correlation ID. Resource type. |
Resource Create | Indicates that a new resource managed by a resource dispenser has been created. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS resource ID. Correlation ID. Resource type. |
Resource Destroy | Indicates that a resource managed by a resource dispenser has been destroyed. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS resource ID. Correlation ID. Resource type. |
Resource Recycle | Indicates that a resource managed by a resource dispenser has been placed into the pool. | Source machine, process, thread, component, and session. Handle to the component in the form of the MTS resource ID. Correlation ID. Resource type. |