mirror of https://github.com/dapr/docs.git
Update daprdocs/content/en/developing-applications/building-blocks/jobs/howto-schedule-and-handle-triggered-jobs.md
Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
This commit is contained in:
parent
6b2fc525a1
commit
88847bda2b
|
@ -94,7 +94,7 @@ app.MapDaprScheduledJobHandler((string jobName, DaprJobDetails jobDetails, ILogg
|
|||
await app.RunAsync();
|
||||
```
|
||||
|
||||
Finally, the job itself needs to be registered with Dapr so it can be triggered at a later point in time. This could happen
|
||||
Finally, the job itself needs to be registered with Dapr so it can be triggered at a later point in time. You can do this
|
||||
by injecting a `DaprJobsClient` into a class and executing as part of an inbound operation to your application, but for
|
||||
this example's purposes, it'll go at the bottom of the `Program.cs` file you started above. Because you'll be using the
|
||||
`DaprJobsClient` you registered with dependency injection, start by creating a scope so you can access it.
|
||||
|
|
Loading…
Reference in New Issue