Пример #1
0
        /// <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));
        }
Пример #2
0
        public object Get(GetSyncJobItems request)
        {
            var result = _syncManager.GetJobItems(request);

            return(ToOptimizedResult(result));
        }