C# Class Examples.ControlClientReceivingMessages.EchoHandler

Inheritance: MessageHandlerDefault
Show file Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
EchoHandler ( IMessagingControl messagingControl, ISendCallback sendCallback ) : System.Linq
OnMessage ( SessionId sessionId, string topicPath, IContent content, IReceiveContext context ) : void

Receives content sent from a session via a topic.

Method Details

EchoHandler() public method

public EchoHandler ( IMessagingControl messagingControl, ISendCallback sendCallback ) : System.Linq
messagingControl IMessagingControl
sendCallback ISendCallback
return System.Linq

OnMessage() public method

Receives content sent from a session via a topic.
public OnMessage ( SessionId sessionId, string topicPath, IContent content, IReceiveContext context ) : void
sessionId SessionId Identifies the client session that sent the content.
topicPath string The path of the topic that the content was sent on.
content IContent The content sent by the client.
context IReceiveContext The context associated with the content.
return void