Ejemplo n.º 1
0
        public AltinnArchivedItem GetArchivedItem(string archiveReference)
        {
            try
            {
                var result = _client.GetArchivedFormTaskBasicDQAsync(_connectionOptions.Value.UserName, _connectionOptions.Value.Password, archiveReference, 1044, false).Result;

                return(AltinnDownloadQueueMapper.MapArchivedForm(result));
            }
            catch (TimeoutException)
            {
                _client.Abort();
                throw;
            }
            catch (CommunicationException)
            {
                _client.Abort();
                throw;
            }
        }
Ejemplo n.º 2
0
        public List <IArchivedItemMetadata> GetEnqueuedItems(string serviceCode)
        {
            try
            {
                var result = _client.GetDownloadQueueItemsAsync(_connectionOptions.Value.UserName, _connectionOptions.Value.Password, serviceCode).Result;

                return(AltinnDownloadQueueMapper.MapDowloadQueueItem(result));
            }
            catch (TimeoutException)
            {
                _client.Abort();
                throw;
            }
            catch (CommunicationException)
            {
                _client.Abort();
                throw;
            }
        }