in src/main/java/com/microsoft/azure/functions/worker/broker/CoreTypeResolver.java [111:130]
static String getBindingNameAnnotation(Parameter param) {
Annotation bindingNameAnnotation = null;
for (Annotation item : param.getAnnotations()){
if (item.annotationType().getName().equals("com.microsoft.azure.functions.annotation.BindingName")){
bindingNameAnnotation = item;
break;
}
}
if (bindingNameAnnotation != null) {
String returnValue = null;
try {
Method value = bindingNameAnnotation.annotationType().getMethod("value");
returnValue = (String) value.invoke(bindingNameAnnotation);
} catch (Exception ex) {
// Ignore
}
return returnValue;
}
return new String("");
}