Ejemplo n.º 1
0
        public Bundle History(DateTimeOffset?since)
        {
            if (since == null)
            {
                since = DateTimeOffset.MinValue;
            }
            string  title = String.Format("Full server-wide history for updates since {0}", since);
            RestUrl self  = new RestUrl(this.Endpoint).AddPath(RestOperation.HISTORY);

            IEnumerable <BundleEntry> entries = _store.ListVersions(since, Const.MAX_HISTORY_RESULT_SIZE);

            Snapshot.Create(title, self.Uri, entries, Snapshot.NOCOUNT);
            Bundle bundle = BundleEntryFactory.CreateBundleWithEntries(title, Endpoint, Const.AUTHOR, Settings.AuthorUri, entries);

            return(exportPagedBundle(bundle));
        }