Nucleus .Net Core CMS

Conversion.IContentConverterFactory Interface

Namespace: Nucleus.Abstractions.Conversion
Assembly: Nucleus.Abstractions.dll
Interface for a class which returns a Conversion.IContentConverter implementations to convert content from one MIME type to another.
ConvertTo (Site site, Byte[] content, String sourceContentType, String targetContentType)
Perform conversion using the best available content converter (Conversion.IContentConverter implementation).
Parameters
Name Type
site Nucleus.Abstractions.Models.Site
content Byte[]
sourceContentType String
targetContentType String
Create (String sourceContentType, String targetContentType)
Loop through available Conversion.IContentConverter implementations and return the best implementation to convert sourceContentType to targetContentType.
Parameters
Name Type
sourceContentType String
targetContentType String