v2.0.0 #5
Divakar-kumar
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We supported handling cross cutting concerns for non-http triggers using TaskMiddleware
UPDATE:
Sample Timer Trigger:
[FunctionName("TimerTrigger")]
public async Task Run([TimerTrigger("*/10 * * * * *")] TimerInfo myTimer, ILogger log)
{
await _middlewareBuilder.ExecuteAsync(new TaskMiddleware(async (httpContext) =>
{
log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
await Task.FromResult("test");
}));
}
This discussion was created from the release v2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions