public static string Run([ActivityTrigger] string req, ILogger log) { log.LogInformation("C# HTTP trigger function processed a request."); try { FilterGen.Execute(req, log); return("finished generation succesfully!"); } catch (Exception e) { LoggingFacade.LogError("ERROR: " + e.Message); return(e.ToString()); } }
public static async Task <IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, ILogger log) { log.LogInformation("C# HTTP trigger function processed a request."); var data = new StreamReader(req.Body).ReadToEnd(); if (data == string.Empty) { data = "{}"; } var genRoutine = new MainGenerationRoutine(); genRoutine.Execute(data, log); return(new OkObjectResult(string.Empty)); }