Exemplo n.º 1
0
 /// <summary>
 /// Loads the related <see cref="StudyStorage"/> entity.
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 private StudyStorage LoadStudyStorage(IPersistenceContext context)
 {
     if (_studyStorage == null)
     {
         lock (SyncRoot)
         {
             _studyStorage = StudyStorage.Load(context, StudyStorageKey);
         }
     }
     return(_studyStorage);
 }
Exemplo n.º 2
0
        public string GetFolderPath(IPersistenceContext context)
        {
            if (_location == null)
            {
                if (_studyStorage == null)
                {
                    _studyStorage = StudyStorage.Load(context, StudyStorageKey);
                }

                _location = StudyStorageLocation.FindStorageLocations(_studyStorage)[0];
            }

            String path = Path.Combine(_location.FilesystemPath, _location.PartitionFolder);

            path = Path.Combine(path, "Reconcile");
            path = Path.Combine(path, GroupID);
            path = Path.Combine(path, _location.StudyInstanceUid);

            return(path);
        }
        public string GetFolderPath()
        {
            if (_location == null)
            {
                if (_studyStorage == null)
                {
                    using (IReadContext context = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
                    {
                        _studyStorage = StudyStorage.Load(context, this.StudyStorageKey);
                    }
                }

                _location = StudyStorageLocation.FindStorageLocations(_studyStorage)[0];
            }

            XmlNode nodeStoragePath = Data.SelectSingleNode("//StoragePath");
            String  path            = Path.Combine(_location.FilesystemPath, _location.PartitionFolder);

            path = Path.Combine(path, "Reconcile");
            path = Path.Combine(path, nodeStoragePath.InnerText);
            return(path);
        }
Exemplo n.º 4
0
        public string GetFolderPath()
        {
            if (_location == null)
            {
                if (_studyStorage == null)
                {
                    using (var context = new ServerExecutionContext())
                    {
                        _studyStorage = StudyStorage.Load(context.ReadContext, this.StudyStorageKey);
                    }
                }

                _location = StudyStorageLocation.FindStorageLocations(_studyStorage)[0];
            }

            XmlNode nodeStoragePath = Data.SelectSingleNode("//StoragePath");
            String  path            = Path.Combine(_location.FilesystemPath, _location.PartitionFolder);

            path = Path.Combine(path, "Reconcile");
            path = Path.Combine(path, nodeStoragePath.InnerText);
            return(path);
        }
Exemplo n.º 5
0
 public StudyStorage LoadStudyStorage(IPersistenceContext context)
 {
     return(StudyStorage.Load(this.StudyStorageKey));
 }