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

Inheritance: IBlobStorageProvider, IBlobUrlResolver
Show file Open project: VirtoCommerce/vc-internal Class Usage Examples

Public Methods

Method Description
AzureBlobProvider ( string connectionString ) : System
CreateFolder ( VirtoCommerce.Platform.Core.Asset.BlobFolder folder ) : void
GetAbsoluteUrl ( string relativeUrl ) : string
OpenReadOnly ( string url ) : Stream
Remove ( string urls ) : void
Search ( string folderUrl, string keyword ) : VirtoCommerce.Platform.Core.Asset.BlobSearchResult
Upload ( VirtoCommerce.Platform.Core.Asset.UploadStreamInfo request ) : string

Private Methods

Method Description
GetBlobContainer ( string name ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer
GetContainerNameFromUrl ( string url ) : string
GetDirectoryPathFromUrl ( string url ) : string
GetOutlineFromUrl ( string url ) : string[]

Return outline folder from absolute or relative url

ParseConnectionString ( string connectionString ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount

Method Details

AzureBlobProvider() public method

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

CreateFolder() public method

public CreateFolder ( VirtoCommerce.Platform.Core.Asset.BlobFolder folder ) : void
folder VirtoCommerce.Platform.Core.Asset.BlobFolder
return void

GetAbsoluteUrl() public method

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

OpenReadOnly() public method

public OpenReadOnly ( string url ) : Stream
url string
return System.IO.Stream

Remove() public method

public Remove ( string urls ) : void
urls string
return void

Search() public method

public Search ( string folderUrl, string keyword ) : VirtoCommerce.Platform.Core.Asset.BlobSearchResult
folderUrl string
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