Ejemplo n.º 1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Caches the output files.
		/// </summary>
		/// <param name="handle">The handle.</param>
		/// <param name="origFileNames">The original output file names.</param>
		/// <param name="outFileNames">The (possibly temporary) output file names.</param>
		/// <returns></returns>
		/// ------------------------------------------------------------------------------------
		public CacheFileInfo CacheFile(string handle, string[] origFileNames, string[] outFileNames)
		{
			System.Diagnostics.Debug.Assert(origFileNames.Length == outFileNames.Length);
			int index = 0;
			CachedFile[] cachedFiles = new CachedFile[outFileNames.Length];
			for (int i = 0; i < outFileNames.Length; i++)
			{
				cachedFiles[i] = CopyFile(handle, origFileNames[i], outFileNames[i], ref index);
			}

			return new CacheFileInfo(cachedFiles);
		}
Ejemplo n.º 2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Caches the output files.
        /// </summary>
        /// <param name="handle">The handle.</param>
        /// <param name="origFileNames">The original output file names.</param>
        /// <param name="outFileNames">The (possibly temporary) output file names.</param>
        /// <returns></returns>
        /// ------------------------------------------------------------------------------------
        public CacheFileInfo CacheFile(string handle, string[] origFileNames, string[] outFileNames)
        {
            System.Diagnostics.Debug.Assert(origFileNames.Length == outFileNames.Length);
            int index = 0;

            CachedFile[] cachedFiles = new CachedFile[outFileNames.Length];
            for (int i = 0; i < outFileNames.Length; i++)
            {
                cachedFiles[i] = CopyFile(handle, origFileNames[i], outFileNames[i], ref index);
            }

            return(new CacheFileInfo(cachedFiles));
        }
Ejemplo n.º 3
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:CacheFileInfo"/> class.
		/// </summary>
		/// <param name="files">The files.</param>
		/// -----------------------------------------------------------------------------------
		internal CacheFileInfo(CachedFile[] files)
		{
			m_Files = files;
			m_lastAccessed = DateTime.Now;
		}