public static RegisterCmdLineListAction ( this builder, string prototype, string description, string[]>.Action |
||
builder | this | |
prototype | string | |
description | string | |
listAction | string[]>.Action | |
return | void |
public static void RegisterCmdLineListAction(this ContainerBuilder builder, string prototype, string description, Action<ILifetimeScope, string[]> listAction)
{
builder
.Register<CmdLineAction>(c => new SimpleCmdLineAction(c.Resolve<ZetboxConfig>(), prototype, description, listAction))
.As<Option>()
.Named<CmdLineAction>(prototype)
.SingleInstance();
}