Skip to content

Running WebJobs in .NET Core with dependency injection and IConfiguration

License

Notifications You must be signed in to change notification settings

LXBdev/WebJob-netcore-sample

Repository files navigation

Running WebJobs in .NET Core with dependency injection and IConfiguration

This sample contains a simple timer webjob which will run every couple of seconds and dump the contents of IConfiguration to the console.

IConfiguration has the following features:

  • Is available via dependency injection
  • Resolves the appsettings{environment}.json file which can be controlled by setting the environment variable DOTNET_ENVIRONMENT.

Run this sample

  • Clone this repository
  • Make sure you have the storage emulator or something similar running (see appsettings.json)
  • Execute dotnet run

About

Running WebJobs in .NET Core with dependency injection and IConfiguration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages