Beispiel #1
0
        public IList <IComponent> FindComponents(string[] schemaUris, DateTime sinceLastPublished)
        {
            var serializer = new XmlSerializer(typeof(Component));

            using (var client = new TridionBrokerServiceClient())
            {
                return(client.FindComponentsSinceLastPublished(schemaUris, sinceLastPublished)
                       .Select(component => (IComponent)serializer.Deserialize(new StringReader(component)))
                       .ToList());
            }
        }
Beispiel #2
0
        public IList <IComponent> GetLastPublishedComponents(string[] schemaUris, DateTime lastPublishedDate)
        {
            string[] components = null;
            using (var client = new TridionBrokerServiceClient())
            {
                components = client.FindComponentsSinceLastPublished(schemaUris, lastPublishedDate);
            }

            var serializer = new XmlSerializer(typeof(Component));

            return(components
                   .Select(component => (IComponent)serializer.Deserialize(new StringReader(component)))
                   .ToList());
        }
 public IList<IComponent> FindComponents(string[] schemaUris, DateTime sinceLastPublished)
 {
     var serializer = new XmlSerializer(typeof(Component));
     using (var client = new TridionBrokerServiceClient())
     {
         return client.FindComponentsSinceLastPublished(schemaUris, sinceLastPublished)
             .Select(component => (IComponent)serializer.Deserialize(new StringReader(component)))
             .ToList();
     }
 }
        public IList<IComponent> GetLastPublishedComponents(string[] schemaUris, DateTime lastPublishedDate)
        {
            string[] components = null;
            using (var client = new TridionBrokerServiceClient())
            {
                components = client.FindComponentsSinceLastPublished(schemaUris, lastPublishedDate);
            }

            var serializer = new XmlSerializer(typeof(Component));
            return components
                .Select(component => (IComponent)serializer.Deserialize(new StringReader(component)))
                .ToList();
        }