Class ContentProcessor<TInput, TOutput>
Provides a base class to use when developing custom processor components. All processors must derive from this class.
public abstract class ContentProcessor<TInput, TOutput> : IContentProcessor
Type Parameters
TInput- Provides a base class to use when developing custom processor components. All processors must derive from this class.
TOutput- Provides a base class to use when developing custom processor components. All processors must derive from this class.
- Inheritance
-
ContentProcessor<TInput, TOutput>
- Implements
- Derived
- Inherited Members
Constructors
ContentProcessor()
Initializes a new instance of the ContentProcessor class.
protected ContentProcessor()
Properties
Version
Gets or sets the version of the current content processor that will be used to determien if the content needs to be rebuilt.
public virtual string Version { get; set; }
Property Value
Methods
Process(TInput, ContentProcessorContext)
Processes the specified input data and returns the result.
public abstract TOutput Process(TInput input, ContentProcessorContext context)
Parameters
inputTInputExisting content object being processed.
contextContentProcessorContextContains any required custom process parameters.
Returns
- TOutput
A typed object representing the processed input.