Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }