Skip to content

Source generator doesn't handle activity functions that return void #119

@cgillum

Description

@cgillum

I have the following activity definition:

[Function(nameof(FlakeyActivity))]
public static void FlakeyActivity([ActivityTrigger] object _)
{
    throw new ApplicationException("Kah-BOOOOM!!!");
}

Source-gen tried to produce the following:

public static Task<void> CallFlakeyActivityAsync(this TaskOrchestrationContext ctx, object _, TaskOptions? options = null)
{
    return ctx.CallActivityAsync<void>("FlakeyActivity", _, options);
}

Obviously, this didn't compile. It seems we need to handle this as a special-case.

Metadata

Metadata

Assignees

Labels

P2bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions