コード例 #1
0
ファイル: Cvs.cs プロジェクト: runt18/CvsntGitImporter
		public Cvs(ICvsRepository repository, uint cvsProcessCount)
		{
			if (cvsProcessCount < 1 || cvsProcessCount > MaxProcessCount)
				throw new ArgumentOutOfRangeException("cvsProcessCount");

			m_repository = repository;
			m_cvsProcessCount = (int)cvsProcessCount;
		}
コード例 #2
0
ファイル: Cvs.cs プロジェクト: Mattlk13/CvsntGitImporter
        public Cvs(ICvsRepository repository, uint cvsProcessCount)
        {
            if (cvsProcessCount < 1 || cvsProcessCount > MaxProcessCount)
            {
                throw new ArgumentOutOfRangeException("cvsProcessCount");
            }

            m_repository      = repository;
            m_cvsProcessCount = (int)cvsProcessCount;
        }
コード例 #3
0
		/// <summary>
		/// Initializes a new instance of the <see cref="CvsRepositoryCache"/> class.
		/// </summary>
		/// <exception cref="IOException">failed to create the cache directory</exception>
		public CvsRepositoryCache(string cacheDir, ICvsRepository repository)
		{
			m_cacheDir = cacheDir;
			m_repository = repository;

			try
			{
				if (!Directory.Exists(m_cacheDir))
					Directory.CreateDirectory(m_cacheDir);
			}
			catch (UnauthorizedAccessException uae)
			{
				throw new IOException(uae.Message, uae);
			}
		}
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CvsRepositoryCache"/> class.
        /// </summary>
        /// <exception cref="IOException">failed to create the cache directory</exception>
        public CvsRepositoryCache(string cacheDir, ICvsRepository repository)
        {
            m_cacheDir   = cacheDir;
            m_repository = repository;

            try
            {
                if (!Directory.Exists(m_cacheDir))
                {
                    Directory.CreateDirectory(m_cacheDir);
                }
            }
            catch (UnauthorizedAccessException uae)
            {
                throw new IOException(uae.Message, uae);
            }
        }