Show / Hide Table of Contents

Class ExpressionContextFactory

Factory for the creation of expression contexts.

Inheritance
System.Object
ExpressionContextFactory
Implements
IGetsRootExpressionContext
IGetsChildExpressionContexts
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.Rendering
Assembly: ZptSharp.dll
Syntax
public class ExpressionContextFactory : IGetsRootExpressionContext, IGetsChildExpressionContexts

Constructors

| Improve this Doc View Source

ExpressionContextFactory(IServiceProvider)

Initializes a new instance of the ExpressionContextFactory class.

Declaration
public ExpressionContextFactory(IServiceProvider serviceProvider)
Parameters
Type Name Description
System.IServiceProvider serviceProvider

DI service provider.

Methods

| Improve this Doc View Source

GetChildContexts(ExpressionContext)

Gets the child expression contexts.

Declaration
public IEnumerable<ExpressionContext> GetChildContexts(ExpressionContext context)
Parameters
Type Name Description
ExpressionContext context

The context from which to get children.

Returns
Type Description
System.Collections.Generic.IEnumerable<ExpressionContext>

The expression contexts.

| Improve this Doc View Source

GetExpressionContext(IDocument, Object)

Gets the root expression context for the request.

Declaration
public ExpressionContext GetExpressionContext(IDocument document, object model)
Parameters
Type Name Description
IDocument document

The document for which to create an expression context.

System.Object model

The model for which to create an expression context.

Returns
Type Description
ExpressionContext

The expression context.

Implements

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