public string CalculateETag(FileInfo file)
{
using (var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read))
{
var hash = m_hashAlgorithm.ComputeHash(stream);
return(ETagUtil.CreateStrongETag(new string(hash.SelectMany(b => b.ToString("x2").ToLower()).ToArray())));
}
}