Universal Messaging 10.7 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for C# | General Features | Universal Messaging Events
 
Universal Messaging Events
A Universal Messaging Event (nConsumeEvent) is the object that is published to a Universal Messaging channel or queue. It is stored by the server and then passed to consumers as and when required.
Events can contain simple byte array data, or more complex data structures such as an Event Dictionary (see Universal Messaging Event Dictionaries).
Each nConsumeEvent object has an nEventAtrributes object associated with it which contains all available meta data associated with the event
Constructing an Event
In this C# .NET code snippet, we construct our Universal Messaging Event object (nConsumeEvent), and, in this example, pass a byte array data into the constructor:

nConsumeEvent evt = new nConsumeEvent( "String",
(new UTF8Encoding()).GetBytes("Hello World") );