C# Class Microsoft.WindowsAzure.MediaServices.Client.AssetCollection

Represents a collection of IAsset.
Inheritance: AssetBaseCollection
Mostrar archivo Open project: Azure/azure-sdk-for-media-services Class Usage Examples

Public Methods

Method Description
Create ( string assetName, AssetCreationOptions options ) : IAsset

Creates an asset that does not contain any files and AssetState is Initialized.

Create ( string assetName, string storageAccountName, AssetCreationOptions options ) : IAsset

Creates an asset for specified storage account. Asset does not contain any files and AssetState is Initialized.

CreateAsync ( string assetName, AssetCreationOptions options, CancellationToken cancellationToken ) : Task

Asynchronously creates an asset that does not contain any files and AssetState is Initialized.

CreateAsync ( string assetName, string storageAccountName, AssetCreationOptions options, CancellationToken cancellationToken ) : Task

Asynchronously creates an asset for specified storage account. Asset does not contain any files and AssetState is Initialized.

Private Methods

Method Description
AssetCollection ( MediaContextBase cloudMediaContext ) : System

Initializes a new instance of the AssetCollection class.

CreateStorageContentKey ( AssetData tempAsset, Microsoft.WindowsAzure.MediaServices.Client.NullableFileEncryption fileEncryption, IMediaDataServiceContext dataContext ) : ContentKeyData

Method Details

Create() public method

Creates an asset that does not contain any files and AssetState is Initialized.
public Create ( string assetName, AssetCreationOptions options ) : IAsset
assetName string The asset name.
options AssetCreationOptions A which will be associated with created asset.
return IAsset

Create() public method

Creates an asset for specified storage account. Asset does not contain any files and AssetState is Initialized.
public Create ( string assetName, string storageAccountName, AssetCreationOptions options ) : IAsset
assetName string The asset name.
storageAccountName string
options AssetCreationOptions A which will be associated with created asset.
return IAsset

CreateAsync() public method

Asynchronously creates an asset that does not contain any files and AssetState is Initialized.
public CreateAsync ( string assetName, AssetCreationOptions options, CancellationToken cancellationToken ) : Task
assetName string The asset name.
options AssetCreationOptions A which will be associated with created asset.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

CreateAsync() public method

Asynchronously creates an asset for specified storage account. Asset does not contain any files and AssetState is Initialized.
public CreateAsync ( string assetName, string storageAccountName, AssetCreationOptions options, CancellationToken cancellationToken ) : Task
assetName string The asset name.
storageAccountName string The storage account name
options AssetCreationOptions A which will be associated with created asset.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task