Esempio n. 1
0
        protected void EnsureStudyCanBeUpdated(StudyStorageLocation location)
        {
            string reason;

            if (!location.CanUpdate(out reason))
            {
                throw new StudyIsInInvalidStateException(location, reason);
            }
        }
        private static void EnsureStudyCanBeUpdated(StudyStorageLocation destStudy)
        {
            string reason;

            if (!destStudy.CanUpdate(out reason))
            {
                throw new TargetStudyInvalidStateException(reason)
                      {
                          StudyInstanceUid = destStudy.StudyInstanceUid
                      };
            }
        }
 public bool CanReconcile(StudyStorageLocation location, out string reason)
 {
     return location.CanUpdate(out reason);
 }
Esempio n. 4
0
 public bool CanReconcile(StudyStorageLocation location, out string reason)
 {
     return(location.CanUpdate(out reason));
 }
Esempio n. 5
0
 private static void EnsureStudyCanBeUpdated(StudyStorageLocation destStudy)
 {
     string reason;
     if (!destStudy.CanUpdate(out reason))
     {
         throw new TargetStudyInvalidStateException(reason) { StudyInstanceUid = destStudy.StudyInstanceUid };
     }
 }