Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
ed77b49
Updated documentation to reflect new DaprClient DI injection capabili…
WhitWaldo Nov 20, 2024
748b21c
Clarified relationship between DAPR_HTTP_ENDPOINT and DAPR_HTTP_PORT …
WhitWaldo Nov 20, 2024
c2f15fd
Clarified configuration prioritization order on DaprClientBuilder as …
WhitWaldo Nov 21, 2024
db626c4
Merge branch 'master' into daprclient-docs
WhitWaldo Nov 21, 2024
b6ee842
Merge branch 'master' into daprclient-docs
WhitWaldo Nov 24, 2024
74b7cf2
Merge branch 'master' into daprclient-docs
WhitWaldo Dec 3, 2024
c0aac20
Merge branch 'master' into daprclient-docs
WhitWaldo Dec 4, 2024
9e29773
Merge branch 'master' into daprclient-docs
WhitWaldo Dec 4, 2024
a5e1506
Merge branch 'master' into daprclient-docs
WhitWaldo Dec 5, 2024
6a30087
Fixed typo - great catch Philip!
WhitWaldo Dec 10, 2024
db59897
Merge remote-tracking branch 'origin/daprclient-docs' into daprclient…
WhitWaldo Dec 10, 2024
6186b0b
Merge branch 'master' into daprclient-docs
WhitWaldo Dec 10, 2024
392232e
Added information about using Dapr.Jobs favoring dependency injection
WhitWaldo Dec 10, 2024
8ca9b8e
Merge remote-tracking branch 'origin/daprclient-docs' into daprclient…
WhitWaldo Dec 10, 2024
7dce4d0
Building out .NET AI docs
WhitWaldo Dec 10, 2024
d34d8c2
Merge remote-tracking branch 'origin/daprclient-docs' into daprclient…
WhitWaldo Dec 10, 2024
ed64004
Building out .NET AI docs
WhitWaldo Dec 10, 2024
8463451
Merge branch 'master' into daprclient-docs
WhitWaldo Dec 11, 2024
10a4607
Added first-draft of .NET Aspire docs
WhitWaldo Dec 11, 2024
1577fc0
Added first-draft of .NET Aspire docs
WhitWaldo Dec 11, 2024
f63b390
Added first-draft of .NET Aspire docs
WhitWaldo Dec 11, 2024
5a885e4
Reordered the weighting of the development docs to reflect investment…
WhitWaldo Dec 11, 2024
2490222
Updated .NET SDK links to point to a better endpoint
WhitWaldo Dec 11, 2024
f52c284
Merge remote-tracking branch 'origin/daprclient-docs' into daprclient…
WhitWaldo Dec 11, 2024
dbf7b6c
Updated more of the .NET SDK links
WhitWaldo Dec 11, 2024
c0579dc
Reweighted document order
WhitWaldo Dec 11, 2024
26aa2b6
Building out pubsub docs
WhitWaldo Dec 11, 2024
6a6afd2
Tweak to clarify use of the Dapr SDK
WhitWaldo Dec 11, 2024
e02e112
Added missing whitespace for clarity
WhitWaldo Dec 11, 2024
c7a4b8c
Simplified alert about .NET versioning
WhitWaldo Dec 11, 2024
f4be508
Added Dapr.Jobs as a prereq
WhitWaldo Dec 11, 2024
d1ae5e3
Added some minor formatting tweaks
WhitWaldo Dec 11, 2024
8a3784f
Added body of the pubsub how to documentation
WhitWaldo Dec 11, 2024
48558d8
Updated table layout + reformatted
WhitWaldo Dec 11, 2024
76b322e
Added note about using DI functionality in best practices
WhitWaldo Dec 11, 2024
d2ec7c4
Fixed several typos
WhitWaldo Dec 11, 2024
8a24182
Corrected updated overload
WhitWaldo Dec 11, 2024
c58f7b9
Added best practices documentation for PubSub functionality
WhitWaldo Dec 11, 2024
12419a0
Updated contribution guide
WhitWaldo Dec 11, 2024
1b29528
Added current .NET version support to contributor guide
WhitWaldo Dec 11, 2024
34cdffd
Minor word addition
WhitWaldo Dec 11, 2024
89d0b95
Renamed for consistency
WhitWaldo Dec 11, 2024
49bfc9e
Tweaks to introduction text
WhitWaldo Dec 11, 2024
a494c08
Added Conversation usage documentation
WhitWaldo Dec 11, 2024
f2376e6
Updated to reflect updated extension method name following merge of #…
WhitWaldo Dec 11, 2024
0041807
Merge branch 'master' into daprclient-docs
WhitWaldo Dec 11, 2024
c21659b
Built out Jobs introduction
WhitWaldo Dec 11, 2024
73a3f28
Merge remote-tracking branch 'origin/daprclient-docs' into daprclient…
WhitWaldo Dec 11, 2024
2daa522
Updated support message for Dapr.Workflows
WhitWaldo Dec 11, 2024
535b264
Merge branch 'master' into daprclient-docs
WhitWaldo Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added note about using DI functionality in best practices
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
  • Loading branch information
WhitWaldo committed Dec 11, 2024
commit 76b322e127897eab6f74628b7d54ea26c7c94e32
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ description: Essential tips and advice for using DaprJobsClient

## Lifetime management

A `DaprJobsClient` is a version of the Dapr client that is dedicated to interacting with the Dapr Jobs API. It can be registered alongside a `DaprClient` without issue.
A `DaprJobsClient` is a version of the Dapr client that is dedicated to interacting with the Dapr Jobs API. It can be
registered alongside a `DaprClient` without issue.

It maintains access to networking resources in the form of TCP sockets used to communicate with the Dapr sidecar and implements `IDisposable` to support the eager cleanup of resources.
It maintains access to networking resources in the form of TCP sockets used to communicate with the Dapr sidecar and
implements `IDisposable` to support the eager cleanup of resources.

For best performance, create a single long-lived instance of `DaprJobsClient` and provide access to that shared instance throughout your application. `DaprJobsClient` instances are thread-safe and intended to be shared.
For best performance, create a single long-lived instance of `DaprJobsClient` and provide access to that shared instance
throughout your application. `DaprJobsClient` instances are thread-safe and intended to be shared.

This can be aided by utilizing the dependency injection functionality. The registration method supports registration using
as a singleton, a scoped instance or as transient (meaning it's recreated every time it's injected), but also enables
registration to utilize values from an `IConfiguration` or other injected service in a way that's impractical when
creating the client from scratch in each of your classes.

Avoid creating a `DaprJobsClient` for each operation and disposing it when the operation is complete.

Expand Down