Is there any guidance or documentation for which classes in TOM.NET replace the functionality in the legacy COM API for Tridion?
I'm having trouble finding the entry point corresponding to TDSE.
The closest class you have to the good old TDSE is the Session class, which exposes most (if not all) of the "system-level" methods and properties (like current User, WorkflowManager, etc).
In Event Systems you get a session as part of the Subject - all classes derived from IdentifiableObject expose a Session property - and this Session will be running under the identity of the user that caused the event to be triggered. In TOM/COM days, this was not always the case, and very often you had to call .Impersonate in your code to act as the current user. With TOM.NET this is not required anymore, as long as you use the correct session.
Good luck with your upgrade, the new Event System engine is worlds apart from the old one, there really is no turning back.
The TDSE object does not really exist in TOM.NET. The closest object you have is the Session class, although you may not need it as you will receive the target object as the subject parameter of your handler. Try reading this article by Bart:
https://sdltridionworld.com/articles/sdltridion2011/sdltridion2011eventsystem.aspx
The article has a good overview on setting up the event handlers, and a link to a matrix document mapping old COM driven TOM based event systems to the new methodology of the new TOM.NET based event handlers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With