Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 598 Bytes

File metadata and controls

13 lines (9 loc) · 598 Bytes

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