public StorageFilestreamHandler(IDicomServerContext context, DicomReceiveImportContext importContext)
		{
			_context = context;
			_importContext = importContext;

			if (LocalStorageMonitor.IsMaxUsedSpaceExceeded)
			{
				//The input to this method is a VALID DICOM file, and we know we should have stored it if it weren't for
				//the fact that we're out of disk space. So, we insert the work item UID anyway, knowing that it'll cause
				//the work item to fail. In fact, that's why we're doing it.
				_rejectFile = true;
			}

			if (!File.Exists(_context.StorageConfiguration.FileStoreIncomingFolder))
				Directory.CreateDirectory(_context.StorageConfiguration.FileStoreIncomingFolder);
		}
		/// <summary>
		/// Creates an instance of <see cref="ImportFilesUtility"/> to import DICOM object(s)
		/// into the system.
		/// </summary>
		/// <param name="context">The context of the operation.</param>
		public ImportFilesUtility(ImportFilesContext context)
		{
			Platform.CheckForNullReference(context, "context");
			_context = context;
		}
Exemple #3
0
 /// <summary>
 /// Creates an instance of <see cref="ImportFilesUtility"/> to import DICOM object(s)
 /// into the system.
 /// </summary>
 /// <param name="context">The context of the operation.</param>
 public ImportFilesUtility(ImportFilesContext context)
 {
     Platform.CheckForNullReference(context, "context");
     _context = context;
 }