VirtoCommerce.Platform.Data.Asset.FileSystemBlobProvider.FileSystemBlobProvider C# (CSharp) Method

FileSystemBlobProvider() public method

public FileSystemBlobProvider ( string connectionString ) : System
connectionString string
return System
        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('/');
            }
        }