Add Operations to GetAzureFunctions request (#1527)

* Add Operations to GetAzureFunctions request

* add comment

* comments
This commit is contained in:
Charles Gagnon
2022-06-06 12:59:59 -07:00
committed by GitHub
parent 97a106c575
commit 294873613a
6 changed files with 188 additions and 23 deletions

View File

@@ -45,7 +45,10 @@ namespace Microsoft.SqlTools.ServiceLayer.AzureFunctions
// get all the method declarations with the FunctionName attribute
IEnumerable<MethodDeclarationSyntax> methodsWithFunctionAttributes = AzureFunctionsUtils.GetMethodsWithFunctionAttributes(root);
var azureFunctions = methodsWithFunctionAttributes.Select(m => new AzureFunction(m.GetFunctionName(), m.GetHttpRoute())).ToArray();
var azureFunctions = methodsWithFunctionAttributes.Select(m => new AzureFunction(
m.GetFunctionName(),
m.GetHttpTriggerBinding()))
.ToArray();
return new GetAzureFunctionsResult(azureFunctions);
}