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

Public Member Functions

 NetworkEnvelope (int dispatchId, IMessage message)
 

Protected Member Functions

 NetworkEnvelope (SerializationInfo info, StreamingContext context)
 
object GetMetadata (string key)
 
void SetMetadata (string key, object value)
 

Properties

IDictionary< string, object > IMessageEnvelope. Metadata [get]
 
IMessage Message [get, private set]
 
ServerError Error [get, set]
 
int DispatchId [get, set]
 
DateTime IssueDate [get, set]
 
- Properties inherited from Deveel.Data.Protocol.IMessageEnvelope
IDictionary< string, object > Metadata [get]
 
IMessage Message [get]
 
ServerError Error [get]
 

Private Member Functions

void ISerializable. GetObjectData (SerializationInfo info, StreamingContext context)
 

Private Attributes

readonly Dictionary< string, object > metadata
 

Detailed Description

Definition at line 22 of file NetworkEnvelope.cs.

Constructor & Destructor Documentation

Deveel.Data.Protocol.NetworkEnvelope.NetworkEnvelope ( int  dispatchId,
IMessage  message 
)
inline

Definition at line 25 of file NetworkEnvelope.cs.

25  {
26  Message = message;
27 
28  metadata = new Dictionary<string, object>();
29  }
readonly Dictionary< string, object > metadata
Deveel.Data.Protocol.NetworkEnvelope.NetworkEnvelope ( SerializationInfo  info,
StreamingContext  context 
)
inlineprotected

Definition at line 31 of file NetworkEnvelope.cs.

31  {
32  DispatchId = info.GetInt32(NetworkEnvelopeMetadataKeys.DispatchId);
33  IssueDate = new DateTime(info.GetInt64(NetworkEnvelopeMetadataKeys.IssueDate));
34  Error = (ServerError) info.GetValue("Error", typeof (ServerError));
35  Message = (IMessage) info.GetValue("Message", typeof (IMessage));
36  }

Member Function Documentation

object Deveel.Data.Protocol.NetworkEnvelope.GetMetadata ( string  key)
inlineprotected

Definition at line 42 of file NetworkEnvelope.cs.

42  {
43  object value;
44  if (!metadata.TryGetValue(key, out value))
45  return null;
46 
47  return value;
48  }
readonly Dictionary< string, object > metadata
void ISerializable. Deveel.Data.Protocol.NetworkEnvelope.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)
inlineprivate

Definition at line 68 of file NetworkEnvelope.cs.

68  {
69  info.AddValue(NetworkEnvelopeMetadataKeys.DispatchId, DispatchId);
70  info.AddValue(NetworkEnvelopeMetadataKeys.IssueDate, IssueDate.Ticks);
71  info.AddValue("Error", Error);
72  info.AddValue("Message", Message);
73  }
void Deveel.Data.Protocol.NetworkEnvelope.SetMetadata ( string  key,
object  value 
)
inlineprotected

Definition at line 50 of file NetworkEnvelope.cs.

50  {
51  metadata[key] = value;
52  }
readonly Dictionary< string, object > metadata

Member Data Documentation

readonly Dictionary<string, object> Deveel.Data.Protocol.NetworkEnvelope.metadata
private

Definition at line 23 of file NetworkEnvelope.cs.

Property Documentation

int Deveel.Data.Protocol.NetworkEnvelope.DispatchId
getset

Definition at line 58 of file NetworkEnvelope.cs.

ServerError Deveel.Data.Protocol.NetworkEnvelope.Error
getset

Definition at line 56 of file NetworkEnvelope.cs.

DateTime Deveel.Data.Protocol.NetworkEnvelope.IssueDate
getset

Definition at line 63 of file NetworkEnvelope.cs.

IMessage Deveel.Data.Protocol.NetworkEnvelope.Message
getprivate set

Definition at line 54 of file NetworkEnvelope.cs.

IDictionary<string, object> IMessageEnvelope. Deveel.Data.Protocol.NetworkEnvelope.Metadata
getprivate

Definition at line 38 of file NetworkEnvelope.cs.


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