Beispiel #1
0
        public App(IDecryptionServer decryptionServer,
                   IStorageRepository storageRepository,
                   CorePacsSettings coreSettings,
                   IRouteFinder routeFinder,
                   IDicomSendServer dicomSendServer)
        {
            if (decryptionServer == null)
            {
                throw new ArgumentNullException(nameof(decryptionServer));
            }
            this._decryptionServer = decryptionServer;

            if (storageRepository == null)
            {
                throw new ArgumentNullException(nameof(storageRepository));
            }
            if (coreSettings == null)
            {
                throw new ArgumentNullException(nameof(coreSettings));
            }
            if (routeFinder == null)
            {
                throw new ArgumentNullException(nameof(routeFinder));
            }
            if (dicomSendServer == null)
            {
                throw new ArgumentNullException(nameof(dicomSendServer));
            }
            this._storageRepository = storageRepository;
            this._coreSettings      = coreSettings;
            this._routeFinder       = routeFinder;
            this._dicomSendServer   = dicomSendServer;
            Build();
            this._routeFinder.Refresh();
        }
Beispiel #2
0
 public PathFinder(CorePacsSettings coreSettings)
 {
     if (coreSettings == null)
     {
         throw new ArgumentNullException(nameof(coreSettings));
     }
     this._coreSettings = coreSettings;
 }
Beispiel #3
0
 private void build()
 {
     if (this._pStorage == null)
     {
         this._pStorage = ServiceLocator.GetInstance <IStorageRepository>();
         this._storage  = ServiceLocator.GetInstance <IStorage>();
         this._dParser  = ServiceLocator.GetInstance <IDicomParser>();
         this._settings = ServiceLocator.GetInstance <CorePacsSettings>();
     }
 }
Beispiel #4
0
 public PacsServer(IStorageRepository storageRepository, CorePacsSettings coreSettings)
 {
     if (storageRepository == null)
     {
         throw new ArgumentNullException(nameof(storageRepository));
     }
     if (coreSettings == null)
     {
         throw new ArgumentNullException(nameof(coreSettings));
     }
     this._storageRepository = storageRepository;
     this._coreSettings      = coreSettings;
 }