I am able to successfully deploy following firebase cloud function without issue. What i am trying to accomplish is to deploy multiple functions from within Authentication class.
using System.Threading.Tasks;
using Google.Cloud.Functions.Framework;
using Microsoft.AspNetCore.Http;
namespace CloudFunctions
{
public class Authentication: IHttpFunction
{
public async Task HandleAsync(HttpContext context)
{
await context.Response.WriteAsync("Hello World!");
}
}
}
I am deploying using gcloud like following which works fine
gcloud functions deploy login --entry-point CloudFunctions.Authentication --runtime dotnet3 --trigger-http --allow-unauthenticated
What i am trying to do is deploy a login and logout function from within Authentication class. I know how to do this in javascript/typescript but haven't found example of how to do this using c#. I would prefer to not have to create a class for each endpoint.