public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader, int version) { if (reader.ReadBoolean()) { int groupsCount = reader.ReadInt32(); ErrorQueues = new Dictionary<string, Dictionary<string, MessageQueue>>(groupsCount); for (int i = 0; i < groupsCount; i++) { string group = reader.ReadString(); if(reader.ReadBoolean()) { int serviceCount = reader.ReadInt32(); Dictionary<string, MessageQueue> groupQueues = new Dictionary<string, MessageQueue>(serviceCount); for (int j = 0; j < serviceCount; j++) { string serviceName = reader.ReadString(); groupQueues.Add(serviceName, reader.Read<MessageQueue>()); } ErrorQueues.Add(group, groupQueues); } } } }
public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader, int version) { this.CacheListId = reader.ReadBytes(reader.ReadInt32()); this.PageSize = reader.ReadInt32(); this.PageNum = reader.ReadInt32(); this.ReversePagedQuery = reader.ReadBoolean(); if(version>=2) this.VirtualListCount = reader.ReadInt32(); if (version >= 3) this.PrimaryId = reader.ReadInt32(); }
public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader, int version) { this.ContainsCacheListNode = reader.ReadBoolean(); this.ListExists = reader.ReadBoolean(); this.ListMetadata = reader.ReadBytes(reader.ReadInt32()); this.CacheListTotalCount = reader.ReadInt32(); int count = reader.ReadInt32(); if (version >= 2) { this.CacheList = DeserializeListV2(reader, count); this.VirtualListCount = reader.ReadInt32(); } else { this.CacheList = DeserializeListV1(reader, count); } }
public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader, int version) { //IndexExists indexExists = reader.ReadBoolean(); //IndexSize indexSize = reader.ReadInt32(); //Metadata ushort len = reader.ReadUInt16(); if (len > 0) { metadata = reader.ReadBytes(len); } //ResultItemList int listCount = reader.ReadInt32(); resultItemList = new List<ResultItem>(listCount); if (listCount > 0) { ResultItem resultItem; for (int i = 0; i < listCount; i++) { resultItem = new ResultItem(); resultItem.Deserialize(reader); resultItemList.Add(resultItem); } } //ExceptionInfo exceptionInfo = reader.ReadString(); //VirtualCount if (version >= 2) { virtualCount = reader.ReadInt32(); } }
public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader, int version) { this.ListId = reader.ReadBytes(reader.ReadInt32()); this.TTLSeconds = reader.ReadDouble(); this.UpdateListMetadata = reader.ReadBoolean(); this.ListMetadata = reader.ReadBytes(reader.ReadInt32()); this.addList = DeserializeList(reader); this.deleteList = DeserializeList(reader); if (version >= 2) this.ClearList = reader.ReadBoolean(); if (version >= 3) this.ReplaceList = reader.ReadBoolean(); if (version >= 4) this.VirtualListCount = reader.ReadInt32(); if (version >= 5) this.PrimaryId = reader.ReadInt32(); }
public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader) { //FieldName fieldName = reader.ReadString(); //IsTag isTag = reader.ReadBoolean(); //Operation operation = (Operation)reader.ReadByte(); //Value ushort len = reader.ReadUInt16(); if (len > 0) { value = reader.ReadBytes(len); } //DataType dataType = (DataType)reader.ReadByte(); }
public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader, int version) { //TODO figure out if this reverses the order of the queue _enabled = reader.ReadBoolean(); _maxCount = reader.ReadInt32(); _itemsPerDequeue = reader.ReadInt32(); if (reader.ReadBoolean()) { int count = reader.ReadInt32(); _inMessageQueue = new Queue<SerializedRelayMessage>(count); for (int i = 0; i < count; i++) { _inMessageQueue.Enqueue(reader.Read<SerializedRelayMessage>()); } } }
public void Deserialize(MySpace.Common.IO.IPrimitiveReader reader) { cacheDataReferenceType = (CacheDataReferenceTypes) reader.ReadByte(); indexId = reader.ReadBytes(reader.ReadUInt16()); id = reader.ReadBytes(reader.ReadUInt16()); cacheType = reader.ReadBytes(reader.ReadUInt16()); returnAllSortFields = reader.ReadBoolean(); preferredIndexName = reader.ReadString(); metadataRequested = reader.ReadBoolean(); }