public WorkQueueItemDetail CreateWorkQueueItemDetail(WorkQueueItem workQueueItem, IPersistenceContext context) { WorkQueueItemDetail detail = new WorkQueueItemDetail(); detail.WorkQueueItemRef = workQueueItem.GetRef(); detail.CreationTime = workQueueItem.CreationTime; detail.ScheduledTime = workQueueItem.ScheduledTime; detail.ExpirationTime = workQueueItem.ExpirationTime; detail.User = workQueueItem.User; detail.Type = workQueueItem.Type; detail.Status = EnumUtils.GetEnumValueInfo(workQueueItem.Status, context); detail.ProcessedTime = workQueueItem.ProcessedTime; detail.FailureCount = workQueueItem.FailureCount; detail.FailureDescription = workQueueItem.FailureDescription; detail.ExtendedProperties = ExtendedPropertyUtils.Copy(workQueueItem.ExtendedProperties); return detail; }
public LoadWorkQueueItemForEditResponse(WorkQueueItemDetail itemDetail) { this.WorkQueueItemDetail = itemDetail; }