Class MessageReceivedEventArgs
Represents the arguments for the message received event.
Namespace: Evergine.Networking.Connection
Assembly: Evergine.Networking.dll
Syntax
public class MessageReceivedEventArgs : EventArgs
Constructors
MessageReceivedEventArgs(NetworkEndpoint, IncomingMessage)
Initializes a new instance of the MessageReceivedEventArgs class.
Declaration
public MessageReceivedEventArgs(NetworkEndpoint fromEndpoint, IncomingMessage receivedMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkEndpoint | fromEndpoint | The sender's endpoint. |
| IncomingMessage | receivedMessage | The message received. |
Properties
FromEndpoint
Gets the sender's endpoint.
Declaration
public NetworkEndpoint FromEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| NetworkEndpoint |
ReceivedMessage
Gets the received message.
Declaration
public IncomingMessage ReceivedMessage { get; }
Property Value
| Type | Description |
|---|---|
| IncomingMessage |