Exemplo n.º 1
0
        public IComponentMeta GetComponentMeta(string componentUri)
        {
            ComponentMeta componentMeta = new ComponentMeta();

            using (var client = new TridionBrokerServiceClient())
            {
                string   compMeta    = client.GetComponentMeta(componentUri);
                XElement compMetaXml = XElement.Parse(compMeta);
                componentMeta.CreationDate     = Convert.ToDateTime(compMetaXml.Element("CreationDate").Value, System.Globalization.CultureInfo.InvariantCulture);
                componentMeta.ModificationDate = Convert.ToDateTime(compMetaXml.Element("ModificationDate").Value, System.Globalization.CultureInfo.InvariantCulture);

                return(componentMeta);
            }
        }
        public IComponentMeta GetComponentMeta(string componentUri)
        {
            ComponentMeta componentMeta = new ComponentMeta();
            using (var client = new TridionBrokerServiceClient())
            {
                string compMeta = client.GetComponentMeta(componentUri);
                XElement compMetaXml = XElement.Parse(compMeta);
                componentMeta.CreationDate = Convert.ToDateTime(compMetaXml.Element("CreationDate").Value, System.Globalization.CultureInfo.InvariantCulture);
                componentMeta.ModificationDate = Convert.ToDateTime(compMetaXml.Element("ModificationDate").Value, System.Globalization.CultureInfo.InvariantCulture);

                return componentMeta;
            }
        }