C# Class VirtoCommerce.Platform.Data.Asset.FileSystemBlobProvider

Inheritance: IBlobStorageProvider, IBlobUrlResolver
Mostrar archivo Open project: VirtoCommerce/vc-internal Class Usage Examples

Public Methods

Method Description
CreateFolder ( VirtoCommerce.Platform.Core.Asset.BlobFolder folder ) : void

Create folder in file system within to base directory

FileSystemBlobProvider ( string connectionString ) : System
GetAbsoluteUrl ( string relativeUrl ) : string
OpenReadOnly ( string url ) : Stream

Open blob by relative or absolute url

Remove ( string urls ) : void

Remove folders and blobs by absolute or relative urls

Search ( string folderUrl, string keyword ) : VirtoCommerce.Platform.Core.Asset.BlobSearchResult

Search folders and blobs in folder

Upload ( VirtoCommerce.Platform.Core.Asset.UploadStreamInfo request ) : string

Private Methods

Method Description
GetAbsoluteStoragePathFromUrl ( string url ) : string
GetAbsoluteUrlFromPath ( string path ) : string
LoadFile ( string filePath ) : Stream
UpdloadFile ( Stream stream, string filePath ) : void

Method Details

CreateFolder() public method

Create folder in file system within to base directory
public CreateFolder ( VirtoCommerce.Platform.Core.Asset.BlobFolder folder ) : void
folder VirtoCommerce.Platform.Core.Asset.BlobFolder
return void

FileSystemBlobProvider() public method

public FileSystemBlobProvider ( string connectionString ) : System
connectionString string
return System

GetAbsoluteUrl() public method

public GetAbsoluteUrl ( string relativeUrl ) : string
relativeUrl string
return string

OpenReadOnly() public method

Open blob by relative or absolute url
public OpenReadOnly ( string url ) : Stream
url string
return Stream

Remove() public method

Remove folders and blobs by absolute or relative urls
public Remove ( string urls ) : void
urls string
return void

Search() public method

Search folders and blobs in folder
public Search ( string folderUrl, string keyword ) : VirtoCommerce.Platform.Core.Asset.BlobSearchResult
folderUrl string absolute or relative path
keyword string
return VirtoCommerce.Platform.Core.Asset.BlobSearchResult

Upload() public method

public Upload ( VirtoCommerce.Platform.Core.Asset.UploadStreamInfo request ) : string
request VirtoCommerce.Platform.Core.Asset.UploadStreamInfo
return string