Esempio n. 1
0
        /// <summary>
        /// Starts the enumeration of images that match the specified
        /// Study Instance UID.
        /// </summary>
        /// <param name="studyLoaderArgs"></param>
        /// <returns>Number of images in study.</returns>
        public int Start(StudyLoaderArgs studyLoaderArgs)
        {
            if (studyLoaderArgs.Server != null)
            {
                _currentServer = studyLoaderArgs.Server.ToServiceNode();
            }

            try
            {
                return(OnStart(studyLoaderArgs));
            }
            catch (LoadStudyException)
            {
                throw;
            }
            catch (Exception e)
            {
                throw new LoadStudyException(studyLoaderArgs.StudyInstanceUid, e);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Called by <see cref="Start"/> to begin prefetching.
 /// </summary>
 protected abstract int OnStart(StudyLoaderArgs studyLoaderArgs);