DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Attributes | List of all members
Deveel.Data.Protocol.ClientConnector.ClientMessageProcessor Class Reference
Inheritance diagram for Deveel.Data.Protocol.ClientConnector.ClientMessageProcessor:
Deveel.Data.Protocol.IMessageProcessor

Public Member Functions

 ClientMessageProcessor (ClientConnector connector)
 
IMessageEnvelope ProcessMessage (IMessageEnvelope message)
 

Private Attributes

readonly ClientConnector connector
 

Detailed Description

Definition at line 83 of file ClientConnector.cs.

Constructor & Destructor Documentation

Deveel.Data.Protocol.ClientConnector.ClientMessageProcessor.ClientMessageProcessor ( ClientConnector  connector)
inline

Definition at line 86 of file ClientConnector.cs.

86  {
87  this.connector = connector;
88  }

Member Function Documentation

IMessageEnvelope Deveel.Data.Protocol.ClientConnector.ClientMessageProcessor.ProcessMessage ( IMessageEnvelope  message)
inline

Implements Deveel.Data.Protocol.IMessageProcessor.

Definition at line 90 of file ClientConnector.cs.

90  {
91  var response = connector.SendEnvelope(message);
92  if (response == null)
93  throw new InvalidOperationException("Unable to obtain a response from the server.");
94 
95  if (response.Error != null)
96  throw new ServerException(response.Error.ErrorMessage);
97 
98  var content = connector.OpenEnvelope(response);
100  return response;
101  }
virtual void OnMessageReceived(IMessage message)
abstract IMessageEnvelope SendEnvelope(IMessageEnvelope envelope)
virtual IMessage OpenEnvelope(IMessageEnvelope envelope)

Member Data Documentation

readonly ClientConnector Deveel.Data.Protocol.ClientConnector.ClientMessageProcessor.connector
private

Definition at line 84 of file ClientConnector.cs.


The documentation for this class was generated from the following file: