Skip to content

How to add metadata to Message when using an output binding? #124

@moagardell

Description

@moagardell

I am using a Azure Function with an output bidning as is described in section: "Using ICollector with Service Bus queue bindings"
I need to add specifik metadata to the message that are added to the queue, but it seeams like thats not supported?
I want to filter the messages in the topic with Message.CorrelationId or Message.Label,
I tried to use ICollector<Message> but it throws exception "Error getting value from 'ExpiresAtUtc' on 'Microsoft.Azure.ServiceBus.Message'".
How can I add metadata to the message using output bindings?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions