/// <summary> /// Gets the data to send. /// </summary> /// <param name="state">The state.</param> /// <returns>Task{SystemInfo}.</returns> protected override Task <CompleteSyncJobInfo> GetDataToSend(WebSocketListenerState state) { var job = _syncManager.GetJob(_jobId); var items = _syncManager.GetJobItems(new SyncJobItemQuery { AddMetadata = true, JobId = _jobId }); var info = new CompleteSyncJobInfo { Job = job, JobItems = items.Items.ToList() }; return(Task.FromResult(info)); }
public object Get(GetSyncJobItems request) { var result = _syncManager.GetJobItems(request); return(ToOptimizedResult(result)); }