ServiceCollection services)
{
    ...
    services.AddSingleton&lt;MetadataProvider&gt;();
    services.AddScoped&lt;MetadataTransferService&gt;();
}</pre>
<blockquote>The <code>MetadataProvider</code> can also be a scoped service. You should choose which is the best fit in your case and not always make it as singleton as the example.</blockquote>
<h3>Creating the metadata component</h3>
<p>The <code>Metadata.razor</code> includes all the metadata tags you want on the website. Some basic tags that every web