Azure function with precompiled function - same dll

I followed this blog post to create a precompiled azure function. https://blogs.msdn.microsoft.com/appserviceteam/2017/03/16/publishing-a-net-class-library-as-a-function-app/

Is it possible to create more than one function in the same project / same DLL?

thank

+3


source to share


1 answer


Oops!

You need to add a new folder to the root of your project with the name of your function that contains function.json

.



Then, internally function.json

set scriptFile

to your dll and entryPoint

to the method you want to execute as your second function.

{
  "scriptFile": "..\\bin\\SomeDll.dll",
  "entryPoint": "FunctionsLibraryProject.HelloHttpTrigger.SecondRunMethod",
  ...
}

      

+3


source







All Articles