public void TestExport() { IPPMSessionLocal ppmComponent = null; try { ppmComponent = (IPPMSessionLocal)container["PPMSession"]; ppmComponent.ExportPPMFile(TestHelper.GetConfigDir() + "/.."); } finally { container.Release(ppmComponent); } }
protected override void ExecuteTask() { NetBpmContainer container = null; try { //configure the container container = new NetBpmContainer(new XmlInterpreter(ConfigFile)); Thread.CurrentPrincipal = new PrincipalUserAdapter(user); IPPMSessionLocal ppmComponent = (IPPMSessionLocal)container["PPMSession"]; ppmComponent.ExportPPMFile(ExportPath); } finally { if (container != null) { container.Dispose(); } } }