Пример #1
0
        private void LockContent(ISegment segment)
        {
            var txt = stringBuilder.ToString();

            string reason;

            if (ShouldLockSegment(txt, out reason))
            {
                if (segment != null)
                {
                    var props = segment.Properties;
                    if (props != null)
                    {
                        props.IsLocked = true;

                        reportGenerator.AddLockItem(props.Id.Id, txt, $"Matched: {reason}");
                    }
                }
            }

            stringBuilder.Clear();
        }