Пример #1
0
        public override void ReadData(FastBinaryReader reader, Object additionalInfo)
        {
            base.ReadData(reader, additionalInfo);

            FVersion        = reader.ReadObject <SerializedVersion>();
            Signature       = reader.ReadByteArray();
            Id              = reader.ReadString();
            FInitDateTime   = reader.ReadDateTime();
            FFirstDateTime  = reader.ReadDateTime();
            FLastDateTime   = reader.ReadDateTime();
            FNextSequenceId = reader.ReadInt32();
            FMessageCount   = reader.ReadInt32();
        }
Пример #2
0
        public override void ReadData(FastBinaryReader reader, Object additionalInfo)
        {
            Root = (RICustomData)reader.Tag;

            base.ReadData(reader, additionalInfo);

            // Hint is no longer used. This line is left here for backward compatibility
            reader.ReadSafeString();

            ColumnPos = reader.ReadInt16();
            Column    = Root.Columns[ColumnPos];
            Value     = null;

            if (!reader.IsNull())
            {
                switch (Column.FieldTypeId)
                {
                case RICustomDataFieldIdType.Decimal: Value = reader.ReadDecimal(); break;

                case RICustomDataFieldIdType.Integer: Value = reader.ReadInt64(); break;

                case RICustomDataFieldIdType.DateTime: Value = reader.ReadDateTime(); break;

                case RICustomDataFieldIdType.Boolean: Value = reader.ReadBoolean(); break;

                case RICustomDataFieldIdType.String: Value = reader.ReadString(); break;

                case RICustomDataFieldIdType.Object: Value = reader.ReadString(); break;

                case RICustomDataFieldIdType.Unknown: Value = reader.ReadString(); break;

                default: break;
                }
            }
        }
 public virtual void ReadData(FastBinaryReader reader, Object additionalInfo)
 {
     // Version 5.0 data types
     FSequenceID           = reader.ReadInt32();
     FSessionID            = reader.ReadUInt32();
     FRequestID            = reader.ReadUInt32();
     FSourceUtcOffset      = reader.ReadInt16();
     FDateTime             = reader.ReadDateTime();
     FDomainID             = reader.ReadInt32();
     FProcessID            = reader.ReadInt32();
     FThreadID             = reader.ReadInt32();
     FCategory             = reader.ReadString();
     FApplication          = reader.ReadString();
     FMachineName          = reader.ReadString();
     FUserDomainName       = reader.ReadString();
     FUserName             = reader.ReadString();
     FIndentLevel          = reader.ReadSByte();
     FBkColor              = Color.FromArgb(reader.ReadInt32());
     FMessageType          = (MessageType)reader.ReadInt32();
     FMessageSubType       = reader.ReadByte();
     FMessage              = reader.ReadString();
     FDetailType           = reader.ReadInt32();
     FExtPropertyContainer = reader.ReadObject <ReflectInsightPropertiesContainer>();
     FSubDetails           = reader.ReadObject <FastSerializerObjectData>();
     FDetails              = reader.ReadObject <FastSerializerObjectData>();
 }