Пример #1
0
        public void TestExport()
        {
            IPPMSessionLocal ppmComponent = null;

            try
            {
                ppmComponent = (IPPMSessionLocal)container["PPMSession"];
                ppmComponent.ExportPPMFile(TestHelper.GetConfigDir() + "/..");
            }
            finally
            {
                container.Release(ppmComponent);
            }
        }
Пример #2
0
        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();
                }
            }
        }