Nucleus .Net Core CMS

Conversion.IContentConverter Interface

Namespace: Nucleus.Abstractions.Conversion
Assembly: Nucleus.Abstractions.dll
Interface used by implementations which can convert content types.
ConvertTo (Site site, Byte[] content, String sourceContentType, String targetContentType)
Convert the specified content from sourceContentType to targetContentType.
Parameters
Name Type
site Nucleus.Abstractions.Models.Site
content Byte[]
sourceContentType String
targetContentType String
Weight (String sourceContentType, String targetContentType)
Allows the Conversion.IContentConverter to nominate its priority for converting sourceContentType to targetContentType.
Parameters
Name Type
sourceContentType String
targetContentType String