I am subscribing to several PropertyChanged events on properties of the Order object in my Shell package and would like to ensure that the event handlers are detached before the order is closed.
Is there a way to determine when the open order in the process of being closed so I can un-subscribe the handlers?
If you add a reference to SoftPro.Select.Shell, you should be able to use GetService to get a reference to the IRuningDocumentsManager2 interface. This interface has the kind of events I believe you're looking for.