<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Getting started with the Dapr client .NET SDK on Dapr Docs</title><link>https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-client/</link><description>Recent content in Getting started with the Dapr client .NET SDK on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-client/index.xml" rel="self" type="application/rss+xml"/><item><title>DaprClient usage</title><link>https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-client/dotnet-daprclient-usage/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-client/dotnet-daprclient-usage/</guid><description>&lt;h2 id="lifetime-management">Lifetime management&lt;/h2>
&lt;p>A &lt;code>DaprClient&lt;/code> holds access to networking resources in the form of TCP sockets used to communicate with the Dapr sidecar. &lt;code>DaprClient&lt;/code> implements &lt;code>IDisposable&lt;/code> to support eager cleanup of resources.&lt;/p>
&lt;h3 id="dependency-injection">Dependency Injection&lt;/h3>
&lt;p>The &lt;code>AddDaprClient()&lt;/code> method will register the Dapr client with ASP.NET Core dependency injection. This method accepts an optional
options delegate for configuring the &lt;code>DaprClient&lt;/code> and an &lt;code>ServiceLifetime&lt;/code> argument, allowing you to specify a different lifetime
for the registered resources instead of the default &lt;code>Singleton&lt;/code> value.&lt;/p></description></item></channel></rss>