/// <summary> /// Returns a new <see cref="IAsset"/> with the files in <paramref name="folderPath"/>. /// </summary> /// <param name="context">The <see cref="CloudMediaContext"/> instance.</param> /// <param name="folderPath">The path to the folder with the files to upload to the new <see cref="IAsset"/>.</param> /// <param name="options">The <see cref="AssetCreationOptions"/>.</param> /// <returns>A new <see cref="IAsset"/> with the files in <paramref name="folderPath"/>.</returns> public static IAsset CreateAssetFromFolder(this CloudMediaContext context, string folderPath, AssetCreationOptions options) { return(context.CreateAssetFromFolder(folderPath, options, null)); }
/// <summary> /// Returns a new <see cref="IAsset"/> with the files in <paramref name="folderPath"/>. /// </summary> /// <param name="context">The <see cref="CloudMediaContext"/> instance.</param> /// <param name="folderPath">The path to the folder with the files to upload to the new <see cref="IAsset"/>.</param> /// <param name="options">The <see cref="AssetCreationOptions"/>.</param> /// <param name="uploadProgressChangedCallback">A callback to report upload progress of the files.</param> /// <returns>A new <see cref="IAsset"/> with the files in <paramref name="folderPath"/>.</returns> public static IAsset CreateAssetFromFolder(this CloudMediaContext context, string folderPath, AssetCreationOptions options, Action <IAssetFile, UploadProgressChangedEventArgs> uploadProgressChangedCallback) { return(context.CreateAssetFromFolder(folderPath, null, options, uploadProgressChangedCallback)); }