C# Class WaMedia.Common.Implementations.AssetService

Inheritance: IAssetService
ファイルを表示 Open project: astaykov/WaMediaWeb

Public Methods

Method Description
AssetService ( IMediaService mediaService ) : System
AssignThumbnail ( string assetId ) : void
CopyFromBlob ( string destinationSasUri, string srcBlobSasUri ) : void
CreateAsset ( string pathToFile ) : void

Creates the asset. Note, there is a breaking change in the new SDK! You have to first create the Asset, which is always empty. Then create a file within that asset, then upload a content the newly created file

CreateEmptyAsset ( string name ) : void
DeleteAsset ( string assetId ) : void
GetAssetById ( string assetId ) : Models.Asset
Publish ( string assetId ) : void
Rename ( string assetId, string newName ) : void

Private Methods

Method Description
ThumbnailUrl ( IAsset asset ) : string

Method Details

AssetService() public method

public AssetService ( IMediaService mediaService ) : System
mediaService IMediaService
return System

AssignThumbnail() public method

public AssignThumbnail ( string assetId ) : void
assetId string
return void

CopyFromBlob() public method

public CopyFromBlob ( string destinationSasUri, string srcBlobSasUri ) : void
destinationSasUri string
srcBlobSasUri string
return void

CreateAsset() public method

Creates the asset. Note, there is a breaking change in the new SDK! You have to first create the Asset, which is always empty. Then create a file within that asset, then upload a content the newly created file
public CreateAsset ( string pathToFile ) : void
pathToFile string The path to file.
return void

CreateEmptyAsset() public method

public CreateEmptyAsset ( string name ) : void
name string
return void

DeleteAsset() public method

public DeleteAsset ( string assetId ) : void
assetId string
return void

GetAssetById() public method

public GetAssetById ( string assetId ) : Models.Asset
assetId string
return Models.Asset

Publish() public method

public Publish ( string assetId ) : void
assetId string
return void

Rename() public method

public Rename ( string assetId, string newName ) : void
assetId string
newName string
return void