/// <summary> /// Returns a new <see cref="IAsset"/> with the file in <paramref name="filePath"/>. /// </summary> /// <param name="context">The <see cref="CloudMediaContext"/> instance.</param> /// <param name="filePath">The path to the file 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 file in <paramref name="filePath"/>.</returns> public static IAsset CreateAssetFromFile(this CloudMediaContext context, string filePath, AssetCreationOptions options) { return(context.CreateAssetFromFile(filePath, options, null)); }
/// <summary> /// Returns a new <see cref="IAsset"/> with the file in <paramref name="filePath"/>. /// </summary> /// <param name="context">The <see cref="CloudMediaContext"/> instance.</param> /// <param name="filePath">The path to the file to upload to the new <see cref="IAsset"/>.</param> /// <param name="options">The <see cref="AssetCreationOptions"/>.</param> /// <param name="uploadProgressChangedCallback">A callback to report the upload progress of the file.</param> /// <returns>A new <see cref="IAsset"/> with the file in <paramref name="filePath"/>.</returns> public static IAsset CreateAssetFromFile(this CloudMediaContext context, string filePath, AssetCreationOptions options, Action <IAssetFile, UploadProgressChangedEventArgs> uploadProgressChangedCallback) { return(context.CreateAssetFromFile(filePath, null, options, uploadProgressChangedCallback)); }