AMPS C# Client
5.3.5.0
AMPS C# Client for .NET
|
Public Member Functions | |
void | invoke (Message message) |
Method for the AMPS client to call when a message is received. More... | |
Interface for classes that handle AMPS messages.
Example Usage:
public class MessagePrinter : MessageHandler {
public void invoke(Message m) {
Console.WriteLine(m.getData());
}
}
void AMPS.Client.MessageHandler.invoke | ( | Message | message | ) |
Method for the AMPS client to call when a message is received.
The AMPS client reuses the same message object in successive calls to the message handler, resetting the contents of the object for each call. Should you need to use the data in the message outside of the call to the message handler, you must copy the message object or copy data out of the message object.
message | The message received from AMPS. As mentioned above, this message object is reused by successive calls to the handler. |
Implemented in AMPS.Client.ActionMessageHandler, and AMPS.Client.DefaultMessageHandler.