-
Notifications
You must be signed in to change notification settings - Fork 2
Conn Class
sequenze edited this page Jun 19, 2017
·
3 revisions
Implements the mechanisms to support the CONN connection scheme.
Object > ConnectionModeBase
public sealed class Conn : ConnectionModeBase, IConnectionMode| Name | Description |
|---|---|
| Conn(IProtocol,IEncoder) | Initializes a new instance of the Conn class. |
| Name | Description |
|---|---|
| ProcessRequest(IOperationMap) | Waits for an incoming message, then executes the corresponding operation and transmits a response. |
| PerformRequest(IMessage) | Sends a request and waits for a response. Finally, it closes the connection and returns the received message. This is a blocking operation. |
| ValidateResponse(IMessage) | Validates the passed response. If the message is a response and the response code is OK the message is returned; otherwise an exception is thrown. |
| ValidateRequest(IMessage) | Validates the passed Request. If the message is a request the message is returned; otherwise an exception is thrown. |
ConnectionModeBase, IConnectionMode, IProtocol, IEncoder, IOperationMap, IMessage