private void AugmentCommandDetails(ICommandConfiguration<Command> x, string name, BaseObject bo) { x.ConstructUsing(() => construct(name, bo)); x.OnFailure(f => fail(f)); x.OnSuccess(s => success(s)); x.OnProgress(p => progress(p)); }
protected void ExecCommand(string name, BaseObject bo) { commandExecutor.Execute<Command>(x => AugmentCommandDetails(x, name, bo)); }