Buildpacks support for Azure functions with multiple entrypoints #258
AshwinSridharan0410
started this conversation in
.NET Core Team
Replies: 1 comment 1 reply
-
@andymoe @nebhale @anthonydahanne @ryanmoran |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an Azure function which has multiple entrypoints, (meaning. there are a lot of run() functions associated with triggers of multiple kinds)
So, each run() function corresponds to an entrypoint.
Example:-
using System;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Logging;
namespace MyAzureFunctionsNamespace
{
public static class MultipleFunctions
{
[FunctionName("TimerTriggerFunction")]
public static void TimerTriggerFunction([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer, ILogger log)
{
log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
}
}
Here there are multiple triggers(entrypoints). How will buildpacks support all of these ?
When looked upon the code of dotnet buildpacks,
I understood this logic,
When we build upon a .csproj file, in the backend, it is looking for a runtime.config.json which gets the name of csproj file.
Say. abc.csproj generates abc.dll and abc.runtime.config.json
And buildpacks looks for an entrypoint function with the same name runtimeconfig.json is generated.
Please correct my understanding here.
This would work fine , if I just have a single trigger function acting as the entrypoint. So I will change the name of the function to that, thus buildpacks will identify it and set the process type and start the exporting process in the lifecycle.
How will it work for multiple entrypoints as stated in the above example ?
Beta Was this translation helpful? Give feedback.
All reactions