MessagePump Class

The Message Pump ensures the transfer of real-time data from the server (logs, statuses) and the sending of information to the server (commands).
Inheritance Hierarchy
System.Object
  Gamanet.C4.SDK.MessagePump

Namespace: Gamanet.C4.SDK
Assembly: Gamanet.C4.SimpleClient (in Gamanet.C4.SimpleClient.dll) Version: 2026.0.0.733
Syntax
C#
public sealed class MessagePump : ISimpleClientMessagePumpV1, 
	IDisposable

The MessagePump type exposes the following members.

Methods
 NameDescription
Public methodAddToRouteTable Adds to route table.
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodFlush Flush clears all buffers for this MessagePump and causes any buffered messages to be sended to the server.
Public methodRemoveFromRouteTable Removes from route table.
Public methodCode exampleSendFor sending commands
Public methodSendAsync Sends the specified message. In case of any Validation or other exceptions during processing are thrown in current thread.
Public methodSetCommunicationFilter Sets the communication filter.
Public methodCode exampleSetCommunicationLevel Sets the communication level. Command and System messages are always occurred.
Public methodCode exampleStartStarts Message Pump.
Public methodCode exampleStop Stops Message Pump.
Top
Events
 NameDescription
Public eventCode exampleOnMessage To receive live messages
Public eventCode exampleOnStateChanged Occurs when on state changed.
Top
Extension Methods
 NameDescription
Public Extension MethodCode exampleToInvariantString To the invariant string.
(Defined by Extensions)
Top
See Also

Reference

Gamanet.C4.SDK Namespace