/// <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); } }
/// <summary> /// Called by <see cref="Start"/> to begin prefetching. /// </summary> protected abstract int OnStart(StudyLoaderArgs studyLoaderArgs);