17 using System.Collections.Generic;
18 using System.Runtime.Serialization;
20 namespace Deveel.Data.Protocol {
23 private readonly Dictionary<string, object>
metadata;
28 metadata =
new Dictionary<string, object>();
39 get {
return metadata; }
44 if (!metadata.TryGetValue(key, out value))
51 metadata[key] = value;
58 public int DispatchId {
63 public DateTime IssueDate {
68 void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) {
71 info.AddValue(
"Error",
Error);
72 info.AddValue(
"Message", Message);
object GetMetadata(string key)
IDictionary< string, object > Metadata
readonly Dictionary< string, object > metadata
void SetMetadata(string key, object value)
NetworkEnvelope(int dispatchId, IMessage message)
NetworkEnvelope(SerializationInfo info, StreamingContext context)