Esempio n. 1
0
        /// <summary>
        /// Given a data record; tranform that record into a message part.
        /// </summary>
        protected BizTalkTrackedMessagePart DeserializeMessagePartFromRecord(IDataReader record, int spoolId)
        {
            var initialFragment = new BizTalkFragment {
                FragmentNumber = 1
            };
            var part = new BizTalkTrackedMessagePart(this, spoolId, initialFragment);

            part.PartName      = record.GetString(0);
            part.PartId        = record.GetGuid(1);
            part.FragmentCount = record.GetInt32(2);

            initialFragment.ImagePart = (byte[])record.GetValue(3);
            part.Properties           = BizTalkConvert.DeserializeContext((byte[])record.GetValue(4));

            part.OldPartId = record.GetGuid(5);

            return(part);
        }
Esempio n. 2
0
        /// <summary>
        /// Given a data record; tranform that record into a message part.
        /// </summary>
        protected BizTalkTrackedMessagePart DeserializeMessagePartFromRecord(IDataReader record, int spoolId)
        {
            var initialFragment = new BizTalkFragment { FragmentNumber = 1 };
            var part = new BizTalkTrackedMessagePart(this, spoolId, initialFragment);

            part.PartName = record.GetString(0);
            part.PartId = record.GetGuid(1);
            part.FragmentCount = record.GetInt32(2);

            initialFragment.ImagePart = (byte[])record.GetValue(3);
            part.Properties = BizTalkConvert.DeserializeContext((byte[])record.GetValue(4));

            part.OldPartId = record.GetGuid(5);

            return part;
        }