<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dapr Secrets Management .NET SDK on Dapr Docs</title><link>https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-secrets/</link><description>Recent content in Dapr Secrets Management .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-secrets/index.xml" rel="self" type="application/rss+xml"/><item><title>How to: Manage secrets with the Dapr Secrets Management .NET SDK</title><link>https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-secrets/dotnet-secrets-howto/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-secrets/dotnet-secrets-howto/</guid><description>&lt;p>Let&amp;rsquo;s walk through how to retrieve secrets from a Dapr secret store using the &lt;code>Dapr.SecretsManagement&lt;/code> package. We&amp;rsquo;ll
use the &lt;a href="https://github.com/dapr/dotnet-sdk/tree/master/examples/SecretManagement">sample project provided here&lt;/a> for
the following demonstration, covering direct secret retrieval, bulk secret retrieval, and strongly-typed access via the
included source generator. In this guide, you will:&lt;/p>
&lt;ul>
&lt;li>Deploy a .NET Web API application (&lt;a href="https://github.com/dapr/dotnet-sdk/tree/master/examples/SecretManagement/SecretManagementSample">SecretManagementSample&lt;/a>)&lt;/li>
&lt;li>Utilize the Dapr .NET Secrets Management SDK to retrieve individual and bulk secrets&lt;/li>
&lt;li>Use the source generator to create a strongly-typed interface for your secret store&lt;/li>
&lt;/ul>
&lt;p>In the .NET example project:&lt;/p></description></item><item><title>DaprSecretsManagementClient usage</title><link>https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-secrets/dotnet-secretsclient-usage/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/developing-applications/sdks/dotnet/dotnet-secrets/dotnet-secretsclient-usage/</guid><description>&lt;h2 id="lifetime-management">Lifetime management&lt;/h2>
&lt;p>A &lt;code>DaprSecretsManagementClient&lt;/code> is a subset of the Dapr client that is dedicated to interacting with the Dapr Secrets
API. It can be registered alongside a &lt;code>DaprClient&lt;/code> and other Dapr clients without issue.&lt;/p>
&lt;p>It maintains access to networking resources in the form of TCP sockets used to communicate with the Dapr sidecar and
implements &lt;code>IDisposable&lt;/code> to support the eager cleanup of resources.&lt;/p>
&lt;p>For best performance, create a single long-lived instance of &lt;code>DaprSecretsManagementClient&lt;/code> and provide access to that
shared instance throughout your application. &lt;code>DaprSecretsManagementClient&lt;/code> instances are thread-safe and intended to be
shared.&lt;/p></description></item></channel></rss>