Nirvana C# .NET: Nirvana Events

A Nirvana Event (nConsumeEvent) is the object that is published to a Nirvana channel, queue or P2P service. 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 a Nirvana Event Dictionary.

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 Nirvana Event object (nConsumeEvent), and, in this example, passa byte array data into the constructor:

nConsumeEvent evt = new nConsumeEvent( "String", (new UTF8Encoding()).GetBytes("Hello World") );
Share this page with others:
Tell Your Tweets Facebook It! Add to Delicious Reddit! Digg It! Stumble Upon Add to Your Faves Mixx it
Follow Us:
Keep up with my-Channels on Twitter Become a fan on Facebook LinkedIn Profile Recent Highlights RSS Feed