Merge pull request #7120 from umbraco/netcore/feature/AB3649-move-manifest-stuff

Netcore: Move manifest code
This commit is contained in:
Shannon Deminick
2019-11-14 12:10:25 +11:00
committed by GitHub
129 changed files with 935 additions and 705 deletions

View File

@@ -52,7 +52,7 @@ namespace Umbraco.Core.IO
/// <para>If an <paramref name="oldpath"/> is provided then that file (and associated thumbnails if any) is deleted
/// before the new file is saved, and depending on the media path scheme, the folder may be reused for the new file.</para>
/// </remarks>
string StoreFile(IContentBase content, PropertyType propertyType, string filename, Stream filestream, string oldpath);
string StoreFile(IContentBase content, IPropertyType propertyType, string filename, Stream filestream, string oldpath);
/// <summary>
/// Copies a media file as a new media file, associated to a property of a content item.
@@ -61,6 +61,6 @@ namespace Umbraco.Core.IO
/// <param name="propertyType">The property type owning the copy of the media file.</param>
/// <param name="sourcepath">The filesystem-relative path to the source media file.</param>
/// <returns>The filesystem-relative path to the copy of the media file.</returns>
string CopyFile(IContentBase content, PropertyType propertyType, string sourcepath);
string CopyFile(IContentBase content, IPropertyType propertyType, string sourcepath);
}
}

View File

@@ -88,7 +88,7 @@ namespace Umbraco.Core.IO
#region Associated Media Files
/// <inheritoc />
public string StoreFile(IContentBase content, PropertyType propertyType, string filename, Stream filestream, string oldpath)
public string StoreFile(IContentBase content, IPropertyType propertyType, string filename, Stream filestream, string oldpath)
{
if (content == null) throw new ArgumentNullException(nameof(content));
if (propertyType == null) throw new ArgumentNullException(nameof(propertyType));
@@ -107,7 +107,7 @@ namespace Umbraco.Core.IO
}
/// <inheritoc />
public string CopyFile(IContentBase content, PropertyType propertyType, string sourcepath)
public string CopyFile(IContentBase content, IPropertyType propertyType, string sourcepath)
{
if (content == null) throw new ArgumentNullException(nameof(content));
if (propertyType == null) throw new ArgumentNullException(nameof(propertyType));