C# Class WaMedia.Common.Implementations.AssetService

Inheritance: IAssetService
Afficher le fichier Open project: astaykov/WaMediaWeb

Méthodes publiques

Méthode 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

Méthode Description
ThumbnailUrl ( IAsset asset ) : string

Method Details

AssetService() public méthode

public AssetService ( IMediaService mediaService ) : System
mediaService IMediaService
Résultat System

AssignThumbnail() public méthode

public AssignThumbnail ( string assetId ) : void
assetId string
Résultat void

CopyFromBlob() public méthode

public CopyFromBlob ( string destinationSasUri, string srcBlobSasUri ) : void
destinationSasUri string
srcBlobSasUri string
Résultat void

CreateAsset() public méthode

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.
Résultat void

CreateEmptyAsset() public méthode

public CreateEmptyAsset ( string name ) : void
name string
Résultat void

DeleteAsset() public méthode

public DeleteAsset ( string assetId ) : void
assetId string
Résultat void

GetAssetById() public méthode

public GetAssetById ( string assetId ) : Models.Asset
assetId string
Résultat Models.Asset

Publish() public méthode

public Publish ( string assetId ) : void
assetId string
Résultat void

Rename() public méthode

public Rename ( string assetId, string newName ) : void
assetId string
newName string
Résultat void