예제 #1
0
        protected override void OnObjectReceived(object o)
        {
            CommandLineArgumentsDefinition def = new CommandLineArgumentsDefinition(typeof(FilterAction));

            def.FindMatchingArgument("FilterTarget").RevivedValueOverride = o;
            Args.InvokeMain(def, CmdLineArgs.ToArray());
        }
예제 #2
0
        protected override void OnObjectReceived(object o)
        {
            CommandLineArgumentsDefinition def = new CommandLineArgumentsDefinition(typeof(FilterAction));
            var arg = def.FindMatchingArgument("FilterTarget");

            def.Metadata.Add(new ArgumentOverrideHook(arg, o));
            Args.InvokeMain(def, CmdLineArgs.ToArray());
        }