dapr / components-contrib

Community driven, reusable components for distributed apps
Apache License 2.0
546 stars 477 forks source link

extend input bindings with binding expressions to wire up related output bindings #471

Open KaiWalter opened 4 years ago

KaiWalter commented 4 years ago

Azure Functions has this notion of binding expressions which allows to wire up input bindings (in Azure Functions terminology) with a trigger binding.

C# Sample: Correlation Id or queue message is used to lookup document (large message payload) from Blob Storage:

        [FunctionName(nameof(DistributeInvoice))]
        public static void DistributeInvoice(
            [ServiceBusTrigger(
                "invoice-queue",
                Connection = "sbConnection")] Microsoft.Azure.ServiceBus.Message messageHeader,
            [Blob(
                "payloads/invoice/{correlationId}",
                FileAccess.Read,
                Connection = "payloadStorage")] string payloadIn,
            ILogger log,
            ExecutionContext context)
        {
KaiWalter commented 4 years ago

this would give us what we try to achieve with the Blob Get outbound binding #469 in one sweep

dapr-bot commented 3 years ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot commented 3 years ago

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.