public override void Run(Context context)
 {
     var input = context.Input.MapAs<RegexReplaceFilterInput>();
     var rgx = new Regex(input.RegexPattern);
     var result = rgx.Replace(input.InputString, "Steve Mathieu");
     Console.WriteLine(result);
 }
        public override void Run(Context context)
        {
            var input = context.Input.MapAs<WriteLineInput>();
            var write = string.Format("{0} {1} - {2} ===>", input.Value, Name, input.Index);
            Console.WriteLine("{0} {1}", input.Value, Name);

            context.PushToNext(new WriteLineInput(write, 1));
        }
Exemplo n.º 3
0
 public override void Run(Context context)
 {
     var outValue = new WriteLineInput(PhraseSource(context.Input), (int) context.Input);
     context.PushToNext(outValue);
 }
Exemplo n.º 4
0
 public abstract void Run(Context context);