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 override void Deserialize(MySpace.Common.IO.IPrimitiveReader reader)
		{
			base.Deserialize(reader);

			ushort count = reader.ReadUInt16();
			if (count > 0)
			{
				string key;
				byte[] value;
				for (int i = 0; i < count; i++)
				{
					key = reader.ReadString();
					value = reader.ReadBytes(reader.ReadUInt16());
					sortFields.Add(key, value);
				}
			}
		}
		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();
            }
		}
Example #4
0
        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)
		{
			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();
		}