Skip to content
Discussion options

You must be logged in to vote

if only input is needed, it's possible to bind it directly to the method signature:

[FunctionName("GetEmailInvoicesToSend_Activity")]
public async Task<List<EmailInvoicesToSend>> GetEmailInvoicesToSendAsync([ActivityTrigger] int invoiceRunId)
{
    var invoiceRun = await GetInvoiceRunWithArtifactsAsync(invoiceRunId);

    var artifacts = invoiceRun
        .InvoiceRunArtifacts
        .Where(IsInvoiceArtifact);

    return artifacts
        .Select(w => new EmailInvoicesToSend
        {
            ArtifactId = w.ArtifactId.Value,
            CustomerId = w.CustomerId,
        })
        .ToList();
}

The article mentions In the .NET-isolated worker, only serializable types representing y…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@staterium
Comment options

@ltouro
Comment options

Answer selected by staterium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants