protected override void OnObjectReceived(object o) { CommandLineArgumentsDefinition def = new CommandLineArgumentsDefinition(typeof(FilterAction)); def.FindMatchingArgument("FilterTarget").RevivedValueOverride = o; Args.InvokeMain(def, CmdLineArgs.ToArray()); }
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()); }