Class ExpressionContextFactory
Factory for the creation of expression contexts.
Inheritance
System.Object
ExpressionContextFactory
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 SourceExpressionContextFactory(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 SourceGetChildContexts(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. |
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. |