コード例 #1
0
        /// <summary>
        /// Returns a copy of the <see cref="TypeSettingStatus"/> without items that are not used.
        /// This is to ensure XML output will exclude unused items.
        /// </summary>
        /// <returns>A copy of the <see cref="TypeSettingStatus"/> without items that are not used.</returns>
        internal TypeSettingStatus GetStatus()
        {
            TypeSettingStatus typeSettingStatus = new TypeSettingStatus();

            typeSettingStatus.TypeName              = TypeName;
            typeSettingStatus.TypeId                = TypeId;
            typeSettingStatus.Disabled              = Disabled;
            typeSettingStatus.Compress              = Compress;
            typeSettingStatus.GroupName             = GroupName;
            typeSettingStatus.RelatedIndexTypeId    = RelatedIndexTypeId;
            typeSettingStatus.CheckRaceCondition    = CheckRaceCondition;
            typeSettingStatus.TTLSettingStatus      = TTLSettingStatus.GetStatus();
            typeSettingStatus.SyncInMessages        = SyncInMessages;
            typeSettingStatus.ThrowOnSyncFailure    = ThrowOnSyncFailure;
            typeSettingStatus.GatherStatistics      = GatherStatistics;
            typeSettingStatus.Description           = Description;
            typeSettingStatus.HydrationPolicyStatus = HydrationPolicyStatus.GetStatus();
            typeSettingStatus.BulkInMessageInfo     = BulkInMessageInfo.GetStatus();
            typeSettingStatus.BulkOutMessageInfo    = BulkOutMessageInfo.GetStatus();
            typeSettingStatus.MessageInfo           = MessageInfo.GetStatus();

            return(typeSettingStatus);
        }