简体   繁体   中英

Where is FunctionInvocationFilterAttribute located?

I've been reading about the extension points of azure functions using the function filters - https://github.com/Azure/azure-webjobs-sdk/wiki/Function-Filters

However I'm stuck at the first hurdle of creating my own class that inherits FunctionInvocationFilterAttribute . I just can't find the type anywhere.

FYI - I'm also pointing at the nightly builds nuget feed ( http://www.myget.org/F/azure-appservice/api/v2 )

Where is the FunctionInvocationFilterAttribute type located?

Finally found the location of the FunctionInvocationFilterAttribute , It looks like it is part of the 2.xx line of packages on the nightly build feed not the 3.xx packages. Thus Updating to the latest pre-release package didn't contain the class.

For anyone interested - this is currently in the dev branch on the github project - https://github.com/Azure/azure-webjobs-sdk/blob/dev/src/Microsoft.Azure.WebJobs.Host/Filters/FunctionInvocationFilterAttribute.cs

and also details on this functionality can be found on this github issue

So to install the correct package:

Install-Package Microsoft.Azure.WebJobs -Version 2.1.0-beta1-10998

or

dotnet add package Microsoft.Azure.WebJobs --version 2.1.0-beta1-10998

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM