Please enable JavaScript.
Coggle requires JavaScript to display documents.
5 web jobs - background task - Coggle Diagram
5 web jobs - background task
WebJobs
feature of Azure App Service
run arbitrary programs or scripts
you need:
Azure App Service web app, web API, or mobile app
multiple WebJobs in a single App Service plan
along with multiple apps or APIs
WebJobs tools in
Visual Studio
versus Azure Functions
Functions For most automated tasks
WebJob get greater control over the behavior of the JobHost object
Types
Continuous
:endless loop
Triggered
visual studio
Console Application project
add New Azure WebJob Project
Program.cs file
contains a Main() method that is the entry point for the application
In the
Main() method
, the application initiates and configures a JobHost object
JobHost
is the object that communicates with Azure once the WebJob is deployed
connection strings in the
App.config file
Code the actions that your WebJob executes in the
Functions.cs file
.
Publish as Azure WebJob
CRON expression
minute
hour
fay of month
month
day of week
WebJobs SDK
WebJobs SDK is a .NET library
Microsoft.Azure.WebJobs
Microsoft.Azure.WebJobs.Extensions
WebJob connection strings
Storage Account connection string
WebJobs dashboard connection string
WebJobs dashboard displays information about a WebJob
JobHost object
listen for trigger events and call functions
Each function is a public, static method that returns no value
Bindings
avoid hard-coding input and output details
functions.json