public Cvs(ICvsRepository repository, uint cvsProcessCount) { if (cvsProcessCount < 1 || cvsProcessCount > MaxProcessCount) throw new ArgumentOutOfRangeException("cvsProcessCount"); m_repository = repository; m_cvsProcessCount = (int)cvsProcessCount; }
public Cvs(ICvsRepository repository, uint cvsProcessCount) { if (cvsProcessCount < 1 || cvsProcessCount > MaxProcessCount) { throw new ArgumentOutOfRangeException("cvsProcessCount"); } m_repository = repository; m_cvsProcessCount = (int)cvsProcessCount; }
/// <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); } }
/// <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); } }