public static IActionResult Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, ILogger log) { log.LogInformation("C# HTTP trigger function processed a request."); Logging?.Clean(); Logging = LoggingFacade.GetInstance(); try { PerformMainRoutine(); return(new OkObjectResult("successfully generated filters")); } catch (Exception e) { Logging.Log(e.Message, LoggingLevel.Errors); return(new ConflictObjectResult(e)); } }