예제 #1
0
        public static IFilterProcessor CreateTrimProcessor(string toRegex, string fromRegex, string trimMiddle)
        {
            // For now, trim the to, then the from
            IFilterProcessor trimTo = new TrimToProcessor(toRegex)
            {
                DownstreamMember = new TrimFromProcessor(fromRegex)
                {
                    DownstreamMember = new TrimMiddleProcessor(trimMiddle)
                }
            };

            return trimTo;
        }
예제 #2
0
        public static IFilterProcessor CreateTrimProcessor(string toRegex, string fromRegex, string trimMiddle)
        {
            // For now, trim the to, then the from
            IFilterProcessor trimTo = new TrimToProcessor(toRegex)
            {
                DownstreamMember = new TrimFromProcessor(fromRegex)
                {
                    DownstreamMember = new TrimMiddleProcessor(trimMiddle)
                }
            };

            return(trimTo);
        }