Azure / Azure/azure-functions-dotnet-worker
DefaultMethodInfoLocator doesn't cater for overloaded methods
- Dominant language
- C#
- Stars
- 466
- Forks
- 215
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 7
Description
### Description
We have a situation where there are overloaded methods in function "controller".
Only 1 is annotated with FunctionAttribute, The other overload is does not have the function attribute, not does it have an trigger attributes on any parameter.
https://github.com/Azure/azure-functions-dotnet-worker/blob/21ce5a7b653a26fe55c1e9d0bfa4a614426e1ac9/src/DotNetWorker.Core/Invocation/DefaultMethodInfoLocator.cs#L32
This assumes a no overloads.
This needs to be modified to filter for methods that have the FunctionName attribute.
### Steps to reproduce
Add 2 overloads for a method. Only add FunctionName to one method.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.