I have a Outlook COM add-in that is registered with Outlook to trap the Send event and examines the content of the message. The add-in examins the content to either allow it to be sent or reject the send. The COM Add-in is a standard VSTO add-in.
I would like to write a C# wrapper around this COM Add-in that will allow other processes to make use of this content scanning. My wrapper can load the COM Add-in but how do i go about triggering the event so that the COM Add-in fires? Would i actually have to use the Outlook Interop assembly to initiate the Send event inorder for the COM add-in to trigger? For the processes that are not Outlook i don't need to send the content, all i want to do is pass the content to the COM Add-in.
Can someone point me in the right direction or if this is even possible?