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(); }
public PathFinder(CorePacsSettings coreSettings) { if (coreSettings == null) { throw new ArgumentNullException(nameof(coreSettings)); } this._coreSettings = coreSettings; }
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>(); } }
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; }