Läs på engelska

Dela via


HostOutputProductionContext Struct

Definition

Context passed to an incremental generator when it has registered an output via RegisterHostOutput<TSource>(IncrementalValuesProvider<TSource>, Action<HostOutputProductionContext,TSource>)

C#
public readonly struct HostOutputProductionContext
Inheritance
HostOutputProductionContext

Properties

CancellationToken

A CancellationToken that can be checked to see if producing the output should be cancelled.

Methods

AddOutput(String, Object)

Adds a host specific output

Applies to

Produkt Versioner
Roslyn 4.12.2, 4.13.0