Sending and receiving messages as typed data. E.g. you may want that the request message is type of YourRequest and the response message
is type of YourResponse.
Classes
| Class | Description | |
|---|---|---|
| DuplexTypedMessagesFactory |
Implements the factory to create duplex strongly typed message sender and receiver.
| |
| ReliableMessage |
Internal message used by Eneter framework for reliable communication.
| |
| ReliableMessageIdEventArgs |
The event arguments used for the notification whether the message was delivered or not delivered.
| |
| ReliableTypedMessagesFactory |
Implements the factory to create reliable typed message sender and receiver.
| |
| TypedMessageReceivedEventArgs<(Of <(<'_MessageData>)>)> |
The typed message received event.
| |
| TypedMessagesFactory |
Implements the factory to create strongly typed message senders and receivers.
| |
| TypedRequestReceivedEventArgs<(Of <(<'_RequestMessageType>)>)> |
The event when the typed message is received.
| |
| TypedResponseReceivedEventArgs<(Of <(<'_ResponseMessageType>)>)> |
The event when a typed response message is received.
| |
| VoidMessage |
Represents an empty data type 'void'.
Can be used if no type is expected as a message.
|
Interfaces
| Interface | Description | |
|---|---|---|
| IDuplexTypedMessageReceiver<(Of <(<'_ResponseType, _RequestType>)>)> |
The interface declares the strongly typed duplex message receiver.
The receiver is able to receive messages of the specified type and send back response messages of specified type.
| |
| IDuplexTypedMessageSender<(Of <(<'_ResponseType, _RequestType>)>)> |
The interface declares the strongly typed duplex message sender.
The duplex sender is able to send messages of the specified type and receive responses of the specified type.
| |
| IDuplexTypedMessagesFactory |
The interface declares the factory that creates message senders and receivers.
| |
| IReliableTypedMessageReceiver<(Of <(<'_ResponseType, _RequestType>)>)> |
The interface declares the strongly typed reliable message receiver.
The receiver is able to receive messages of the specified type and send back response messages of the specified type.
In addition it provides events notifying whether the respone message was delivered.
The reliable typed message receiver can be used only with the reliable typed message sender.
| |
| IReliableTypedMessageSender<(Of <(<'_ResponseType, _RequestType>)>)> |
The interface declares the strongly typed reliable message sender.
The reliable sender can send typed messages and receive typed response messages.
In addition it provides events notifying whether the message was delivered.
The reliable typed message sender can be used only with the reliable typed message receiver.
| |
| IReliableTypedMessagesFactory |
The interface declares the factory to create reliable typed message sender and receiver.
| |
| ISyncDuplexTypedMessageSender<(Of <(<'TResponse, TRequest>)>)> |
Message sender that sends a request message and then waits until the response is received.
| |
| ITypedMessageReceiver<(Of <(<'_MessageDataType>)>)> |
The interface declares the strongly typed message receiver.
The receiver is able to receive messages of the specified type via one-way input channel.
| |
| ITypedMessageSender<(Of <(<'_MessageData>)>)> |
The interface declares the strongly typed messsage sender.
The sender is able to send messages of the specified type via one-way output channel.
| |
| ITypedMessagesFactory |
The interface declares the factory to create strongly typed message senders and receivers.
|
Enumerations
| Enumeration | Description | |
|---|---|---|
| ReliableMessage..::..EMessageType |
Indicates the purpose of the message.
|
Examples
For more details see examples:
- DuplexTypedMessagesFactory - sending and receiving messages of declared type.
- ReliableTypedMessagesFactory - sending and receiving messages of declared typed and receiving information if the message was delivered or not.