Show / Hide Table of Contents

Class SlotFiller

Implementation of IFillsSlots which replaces DOM nodes and removes the slot filler from the macro context when it is used.

Inheritance
System.Object
SlotFiller
Implements
IFillsSlots
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Metal
Assembly: ZptSharp.dll
Syntax
public class SlotFiller : IFillsSlots

Constructors

| Improve this Doc View Source

SlotFiller(ILogger<SlotFiller>, IGetsMetalAttributeSpecs, IReplacesNode)

Initializes a new instance of the SlotFiller class.

Declaration
public SlotFiller(ILogger<SlotFiller> logger, IGetsMetalAttributeSpecs specProvider, IReplacesNode replacer)
Parameters
Type Name Description
Microsoft.Extensions.Logging.ILogger<SlotFiller> logger

A logger.

IGetsMetalAttributeSpecs specProvider

Attribute spec provider.

IReplacesNode replacer

A node replacer.

Methods

| Improve this Doc View Source

FillSlots(MacroExpansionContext, IEnumerable<Slot>)

Fills any of the definedSlots using matching slot-fillers from the specified macroContext.

Declaration
public void FillSlots(MacroExpansionContext macroContext, IEnumerable<Slot> definedSlots)
Parameters
Type Name Description
MacroExpansionContext macroContext

The macro expansion context.

System.Collections.Generic.IEnumerable<Slot> definedSlots

The defined slots which are available to be filled.

Implements

IFillsSlots
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX