Ejemplo n.º 1
0
        public gov.cca.ComponentID createInstance(string instanceName, string className, gov.cca.TypeMap properties)
        {
            gov.cca.ComponentID cid = null;

            try
            {
                ManagerObject manager = backend.DGAC.BackEnd.connectToManager(out ch);

                TypeMap map = new TypeMapImpl(properties);

                cid = manager.createInstance(instanceName, className, map);
            }
            catch (Exception e)
            {
                Console.Error.WriteLine("ERROR Creating Instance !");
            }
            finally
            {
                backend.DGAC.BackEnd.releaseManager(ch);
            }

            return(cid);
        }