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);
        }
Exemple #3
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);
        }
Exemple #4
0
        public IList <StudyStorageLocation> LoadStudyLocations(IPersistenceContext context)
        {
            StudyStorage storage = LoadStudyStorage(context);

            return(StudyStorageLocation.FindStorageLocations(context, storage));
        }