<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dapr Metadata .NET SDK on Dapr Docs</title><link>https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-metadata/</link><description>Recent content in Dapr Metadata .NET SDK on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-metadata/index.xml" rel="self" type="application/rss+xml"/><item><title>How to: Retrieve Dapr runtime metadata with the .NET SDK</title><link>https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-metadata/dotnet-metadata-howto/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-metadata/dotnet-metadata-howto/</guid><description>&lt;p>Let&amp;rsquo;s walk through how to retrieve Dapr runtime metadata using the &lt;code>Dapr.Metadata&lt;/code> package. The package registers a
hosted service that retrieves metadata from the Dapr sidecar during application startup, then exposes the typed
&lt;code>DaprMetadata&lt;/code> value through the .NET options pattern. In this guide, you will:&lt;/p>
&lt;ul>
&lt;li>Install and register the Dapr Metadata .NET SDK&lt;/li>
&lt;li>Inject metadata through &lt;code>IOptions&amp;lt;DaprMetadata&amp;gt;&lt;/code>, &lt;code>IOptionsSnapshot&amp;lt;DaprMetadata&amp;gt;&lt;/code>, or &lt;code>IOptionsMonitor&amp;lt;DaprMetadata&amp;gt;&lt;/code>&lt;/li>
&lt;li>Read runtime metadata, component metadata, subscriptions, actors, workflow, scheduler, and app connection details&lt;/li>
&lt;li>Configure the Dapr HTTP endpoint and API token used to retrieve metadata&lt;/li>
&lt;/ul>
&lt;h2 id="prerequisites">Prerequisites&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://docs.dapr.io/getting-started/install-dapr-cli/">Dapr CLI&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://docs.dapr.io/getting-started/install-dapr-selfhost">Initialized Dapr environment&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://dotnet.microsoft.com/download/dotnet/8.0">.NET 8&lt;/a>,
&lt;a href="https://dotnet.microsoft.com/download/dotnet/9.0">.NET 9&lt;/a>, or
&lt;a href="https://dotnet.microsoft.com/download/dotnet/10.0">.NET 10&lt;/a> installed&lt;/li>
&lt;li>&lt;a href="https://www.nuget.org/packages/Dapr.Metadata">Dapr.Metadata&lt;/a> NuGet package installed to your project&lt;/li>
&lt;/ul>
&lt;h2 id="install-the-package">Install the package&lt;/h2>
&lt;p>Install the Dapr Metadata package:&lt;/p></description></item></channel></rss>