AMPS C# Client  5.3.3.4
AMPS C# Client for .NET
AMPS.Client.ActionMessageHandler Class Reference

Allows usage of an Action (i.e. a lambda function with no return value) in the place of a MessageHandler throughout the AMPS api. More...

+ Inheritance diagram for AMPS.Client.ActionMessageHandler:

Public Member Functions

 ActionMessageHandler (Action< Message > action)
 
void invoke (Message message)
 Method for the AMPS client to call when a message is received. More...
 

Detailed Description

Allows usage of an Action (i.e. a lambda function with no return value) in the place of a MessageHandler throughout the AMPS api.

Member Function Documentation

◆ invoke()

void AMPS.Client.ActionMessageHandler.invoke ( Message  message)
inline

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.

Parameters
messageThe message to handle.

Implements AMPS.Client.MessageHandler.


The documentation for this class was generated from the following file: