Cirrus Getting attributes on parameters

Hi,

It is possible to get attributes on parameters ?

IMethodDefinition has a GetAttribute but IParameter doesnt.

Cheers,
John

Indeed it should be possible. I’ll log an issue to expose that.

1 Like

Thanks, logged as bugs://85074

bugs://85074 got closed with status fixed.

Azure Functions.zip (3.7 MB)

I have this piece of code

method getEmployees([HttpTrigger(AuthorizationLevel.Anonymous, 'get', route = nil)]request:HttpRequest; logger:ILogger):Task<HttpResponseMessage>;

And in the attached aspect Im trying to get the parameter values of the attribute.

It looks like I can only get the value of the first parameter.

H:                   Project folder is /Users/JohnMoshakis/Documents/develop/Echoes/Core/Azure Functions/AzureFunctions [/Users/JohnMoshakis/Documents/develop/Echoes/Core/Azure Functions/AzureFunctions/Functions/GetEmployeesFunction.pas (25)]
H:                   0 [/Users/JohnMoshakis/Documents/develop/Echoes/Core/Azure Functions/AzureFunctions/Functions/GetEmployeesFunction.pas (25)]
E:                   Exception while applying aspect "AzureAspects.FunctionName": Object reference not set to an instance of an object [/Users/JohnMoshakis/Documents/develop/Echoes/Core/Azure Functions/AzureFunctions/Functions/GetEmployeesFunction.pas (25)]

Does the code look ok ?

It’s because it’s a params array for some reason.

Thanks, logged as bugs://85102

bugs://85102 got closed with status fixed.