Show / Hide Table of Contents

Class SourceAnnotationContextProcessor

An implementation of IProcessesExpressionContext which adds source annotation to the DOM where it is applicable to do so.

Inheritance
System.Object
SourceAnnotationContextProcessor
Implements
IProcessesExpressionContext
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.SourceAnnotation
Assembly: ZptSharp.dll
Syntax
public class SourceAnnotationContextProcessor : IProcessesExpressionContext

Constructors

| Improve this Doc View Source

SourceAnnotationContextProcessor(IGetsMetalAttributeSpecs, IGetsAnnotationForNode, IAddsComment)

Initializes a new instance of the SourceAnnotationContextProcessor class.

Declaration
public SourceAnnotationContextProcessor(IGetsMetalAttributeSpecs metalSpecProvider, IGetsAnnotationForNode annotationProvider, IAddsComment commenter)
Parameters
Type Name Description
IGetsMetalAttributeSpecs metalSpecProvider

METAL spec provider.

IGetsAnnotationForNode annotationProvider

Annotation provider.

IAddsComment commenter

Commenter.

Methods

| Improve this Doc View Source

ProcessContextAsync(ExpressionContext, CancellationToken)

Processes the context using the rules defined within this object.

Declaration
public Task<ExpressionContextProcessingResult> ProcessContextAsync(ExpressionContext context, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
ExpressionContext context

The context to process.

System.Threading.CancellationToken token

An optional cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<ExpressionContextProcessingResult>

A result object indicating the outcome of processing.

Implements

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