On this page
CoT Message Process
This page describes how to log information from a WinTAK plugin.
Contents
CoT object
Code examples
Processing incoming CoT messages
To hook the event handler run -
cotMessageReceiver.MessageReceived += cotMessageReceiver_MessageReceived;
Then add this method -
private void cotMessageReceiver_MessageReceived(object sender, CoTMessageArgument e)
{
System.Diagnostics.Debug.WriteLine("Received CoT Message - " + e.CotEvent.ToString());
e.Handled = true; //Set to true stops the standard processing of this message.
}