public FileSystemCasConnection(string storagePath, string hashName) { path = System.IO.Path.GetFullPath(storagePath); this.hashName = hashName; if (hashName == null) hashLength = 20; else using (HashAlgorithm hash = HashAlgorithm.Create(hashName)) hashLength = hash.HashSize / 8; }