Show / Hide Table of Contents

Class MessageHandler

Base class for handling incoming messages from a network connection.

Inheritance
object
MessageHandler
Implements
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: HoloMetrix.Net.Remote
Assembly: HoloMetrix.Net.Remote.dll
Syntax
public abstract class MessageHandler : IDisposable

Constructors

| Improve this Doc View Source

MessageHandler(RemoteSession)

Initializes a new instance of the MessageHandler class.

Declaration
protected MessageHandler(RemoteSession session)
Parameters
Type Name Description
RemoteSession session

Methods

| Improve this Doc View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
| Improve this Doc View Source

HandleLog(LogMessage, byte[])

Handle a log message.

Declaration
protected void HandleLog(LogMessage logMessage, byte[] data)
Parameters
Type Name Description
LogMessage logMessage

The message to handle.

byte[] data

Data package.

| Improve this Doc View Source

HandleMessage(IMessage, byte[])

This is called when a message is received and should be handled.

Declaration
protected virtual void HandleMessage(IMessage message, byte[] data)
Parameters
Type Name Description
IMessage message
byte[] data
| Improve this Doc View Source

HandleResponse(Response, byte[])

Handle a response message.

Declaration
protected void HandleResponse(Response response, byte[] data)
Parameters
Type Name Description
Response response

The response message to handle.

byte[] data

Data package.

| Improve this Doc View Source

OnMessageReceived(object, MessageReceivedEventArgs)

This is called when a message is received.

Declaration
protected void OnMessageReceived(object sender, MessageReceivedEventArgs e)
Parameters
Type Name Description
object sender

The sender.

MessageReceivedEventArgs e

The message received args.

| Improve this Doc View Source

ReadMessage(string)

Convert an input string into a Message made of different parts.

Declaration
protected abstract IMessage ReadMessage(string input)
Parameters
Type Name Description
string input
Returns
Type Description
IMessage

Implements

IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX