Open sandboxFocus

Method TransformAsync

TransformAsync(AspectWeaverContext)

Transforms a Roslyn compilation according to the aspects being woven.

Declaration
Task TransformAsync(AspectWeaverContext context)
Parameters
Type Name Description
AspectWeaverContext context

The context providing access to the compilation, aspect instances, and weaving services. Use AspectInstances to iterate over targets, and set Compilation or use helper methods like RewriteAspectTargetsAsync(CSharpSyntaxRewriter, CancellationToken) to apply transformations.

Returns
Type Description
Task

A task representing the asynchronous transformation operation.