Class PersonalizedContentFragmentHandler
Handles personilized content fragment
Inheritance
Inherited Members
Namespace: EPiServer.Core.Html.StringParsing
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class PersonalizedContentFragmentHandler : INestedFragmentElementHandler, IFragmentElementHandler
Constructors
PersonalizedContentFragmentHandler(IPersonalizedContentFactory, ISecuredFragmentMarkupGeneratorFactory)
Initializes a new instance of the PersonalizedContentFragmentHandler class.
Declaration
public PersonalizedContentFragmentHandler(IPersonalizedContentFactory personalizedContentFactory, ISecuredFragmentMarkupGeneratorFactory securedFragmentMarkupGeneratorFactory)
Parameters
Type | Name | Description |
---|---|---|
IPersonalizedContentFactory | personalizedContentFactory | The personalized content factory. |
ISecuredFragmentMarkupGeneratorFactory | securedFragmentMarkupGeneratorFactory | The secured fragment markup generator factory. |
Properties
NestedFragmentProcessor
Gets or sets a delegate to the fragment processor to use for nested elements.
Declaration
public Action<FragmentParserContext> NestedFragmentProcessor { get; set; }
Property Value
Type | Description |
---|---|
System.Action<FragmentParserContext> |
Remarks
This delegate will be set from the FragmentParser to allow an IFragmentElementHandler to handle nested elements.
Methods
ParseElement(FragmentParserContext, ElementFragment)
Parses the provided element fragment into a string fragment and adds the result to the provided context
.
Declaration
public bool ParseElement(FragmentParserContext context, ElementFragment element)
Parameters
Type | Name | Description |
---|---|---|
FragmentParserContext | context | The current parser context that contains the source and where any results should be written. |
ElementFragment | element | The element that should be parsed. |
Returns
Type | Description |
---|---|
System.Boolean |
|