private static long GetContainerObjectSize(IObjectStorageProvider provider, string containerName, string objectName)
 {
     Dictionary<string, string> headers = provider.GetObjectHeaders(containerName, objectName);
     return long.Parse(headers["Content-Length"]);
 }
        private static string GetObjectContentType(IObjectStorageProvider provider, string containerName, string objectName)
        {
            Dictionary<string, string> headers = provider.GetObjectHeaders(containerName, objectName);

            string contentType;
            if (!headers.TryGetValue("Content-Type", out contentType))
                return null;

            return contentType.ToLowerInvariant();
        }