public void Install(int siteRootNodeId, StoreReadOnly store) { var installPipeline = new InstallPipeline(); installPipeline.Process(new InstallPipelineContext { SiteRootNodeId = siteRootNodeId, Store = store }); }
public void Install(int siteRootNodeId, StoreReadOnly store) { var result = PipelineRunner.Invoke <InstallPipeline, InstallPipelineContext>(new InstallPipelineContext { SiteRootNodeId = siteRootNodeId, Store = store }); if (!result.Success) { throw result.Exception; } }