DateTime?IArchiveLaterService.GetScheduledArchiveUtc(ArchiveLaterPart archiveLaterPart)
        {
            var task = _scheduledTaskManager.GetTasks(archiveLaterPart.ContentItem)
                       .SingleOrDefault(t => t.TaskType == UnpublishTaskType);

            return(task == null ? null : task.ScheduledUtc);
        }
Exemplo n.º 2
0
 public ArchiveLaterViewModel(ArchiveLaterPart archiveLaterPart)
 {
     _archiveLaterPart = archiveLaterPart;
 }
 protected void LazyLoadHandlers(ArchiveLaterPart part)
 {
     part.ScheduledArchiveUtc.Loader(() => _archiveLaterService.GetScheduledArchiveUtc(part));
 }