public FileSystemBlobProvider(string connectionString)
{
if (connectionString == null)
{
throw new ArgumentNullException("connectionString");
}
var properties = connectionString.ToDictionary(";", "=");
_storagePath = HostingEnvironment.MapPath(properties["rootPath"]);
if (_storagePath != null)
{
_storagePath = _storagePath.TrimEnd('\\');
}
_basePublicUrl = properties["publicUrl"];
if (_basePublicUrl != null)
{
_basePublicUrl = _basePublicUrl.TrimEnd('/');
}
}