Class WaveTemplate<TModel>
Wave template that is scoped to a TModel type for Model (Rendering Context)
Inheritance
System.Object
    
    
    WaveTemplate<TModel>
  Implements
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: NFX.Wave.Templatization
Assembly: NFX.Wave.dll
Syntax
public class WaveTemplate<TModel> : WaveTemplate, ITemplate
  Type Parameters
| Name | Description | 
|---|---|
| TModel | 
Constructors
WaveTemplate()
Declaration
public WaveTemplate()
  WaveTemplate(WorkContext)
Declaration
public WaveTemplate(WorkContext context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| WorkContext | context | 
Properties
Model
Shortcut to TemplateRenderingContext which is set per call to Render(TModel)
Declaration
public TModel Model { get; }
  Property Value
| Type | Description | 
|---|---|
| TModel | 
Methods
Render(ResponseRenderingTarget, TModel)
Renders template by generating content into ResponseRenderingTarget
Declaration
public void Render(ResponseRenderingTarget target, TModel model)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ResponseRenderingTarget | target | A ResponseRenderingTarget target to render output into  | 
      
| TModel | model | A model object for this rendering call  | 
      
Render(WorkContext, TModel)
Renders template by generating content into WorkContext
Declaration
public void Render(WorkContext work, TModel model)
  Parameters
| Type | Name | Description | 
|---|---|---|
| WorkContext | work | |
| TModel | model |