/// <summary>
        /// Inflate from stream
        /// </summary>
        public override bool Inflate(Stream source)
        {
            // Reset inflation size
            InflationSize = 0;

            // NOTE: state ID is skipped because it is read by the construction factory

            // Read the value
            byte[] value = InflateValue(source);

            // Get transaction isolation level
            TransactionIsolationLevel = (TransactionIsolationLevelType)((byte)(value[0] & 0xf));

            // Inflation is complete
            return(true);
        }
Пример #2
0
        /// <summary>
        /// Inflate from stream
        /// </summary>
        public override bool Inflate(Stream source)
        {
            // Reset inflation size
            InflationSize = 0;

            // NOTE: state ID is skipped because it is read by the construction factory

            // Read the value
            byte[] value = InflateValue(source);

            // Get transaction isolation level
            TransactionIsolationLevel = (TransactionIsolationLevelType)((byte)(value[0] & 0xf));

            // Inflation is complete
            return true;
        }