Beispiel #1
0
        public IList <IComponent> GetLastCreatedComponents(string[] schemaUris, DateTime lastCreatedDate)
        {
            string[] components = null;
            using (var client = new TridionBrokerServiceClient())
            {
                components = client.FindComponentsSinceLastCreated(schemaUris, lastCreatedDate);
            }
            var serializer = new XmlSerializer(typeof(Component));

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