question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All kinds of convenience methods for creating bindings in FluentBindingRule should have an overload that accepts a factory that can process a ValueBindingContext

See original GitHub issue

The FluentBindingRule class contains a number of BindToXxx methods that represent convenience APIs for creating attribute bindings for function parameters and for return values.

Two of such methods (BindToInput(..) and BindToStream(..)) have overloads that allow the value factory to inspect the ValueBindingContext while creating the value bound by an attribute. This enables a number of scenarios: For example, it provides access to the name of the function being invoked, and to the id of the particular invocation instance. These values are otherwise not accessible.

Unfortunately, other BindToXxx methods do not such overloads (BindToCollector(..) and BindToValueProvider(..)). This proposal is to add corresponding overloads.

We currently require the respective BindToCollector(..) overload for scenarios in the Availability Monitoring Extension. The BindToValueProvider(..) overload should be added for consistency.

A candidate PR is readily available (https://github.com/Azure/azure-webjobs-sdk/pull/2489).

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zmartycommented, Nov 14, 2020

@fabiocav We still need this 😃

0reactions
zmartycommented, Jul 17, 2021

Hi @zmarty , Can you confirm if this still requires a triage/ follow up or can this issue be closed.

Yes, we need this. No need to keep asking, the answer is Yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pull requests · Azure/azure-webjobs-sdk
All kinds of convenience methods for creating bindings in FluentBindingRule should have an overload that accepts a factory that can process a ...
Read more >
Binding error using Xamarin Android due to overload method
The original jar file has an interface that contains two methods that are named equally but receive different parameter (an overload method).
Read more >
Bindings for Durable Functions (Azure Functions)
The Durable Functions extension introduces three trigger bindings that control the execution of orchestrator, entity, and activity functions. It ...
Read more >
Why does Java choose to treat overload as static binding ...
Overloading is just two different methods with the same name. Operationally, the methods have nothing to do with each other. It's just a...
Read more >
Azure Tables output bindings for Azure Functions
In this article​​ This output binding only supports creating new entities in a table. If you need to update an existing entity from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found