Skip to content

Commit 251e3f5

Browse files
authored
Correct docs for .NET SDK hosting integration (#706)
* Fix nuget badge * Fix typo
1 parent 839a3ea commit 251e3f5

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

website/docs/sdk-reference/dotnet/_template.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,21 @@ export const getAdjustedToc = (platform) => {
3636
}
3737
};
3838

39+
<If condition={!props.platform}>
3940
[![Star on GitHub](https://img.shields.io/github/stars/configcat/.net-sdk.svg?style=social)](https://github.com/configcat/.net-sdk/stargazers)
4041
[![Build status](https://github.com/configcat/.net-sdk/actions/workflows/dotnet-sdk-ci.yml/badge.svg?branch=master)](https://github.com/configcat/.net-sdk/actions/workflows/dotnet-sdk-ci.yml)
4142
[![NuGet Version](https://img.shields.io/nuget/v/ConfigCat.Client)](https://www.nuget.org/packages/ConfigCat.Client/)
4243
[![Sonar Coverage](https://img.shields.io/sonar/coverage/net-sdk?logo=SonarCloud&server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/project/overview?id=net-sdk)
4344
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=net-sdk&metric=alert_status)](https://sonarcloud.io/dashboard?id=net-sdk)
45+
</If>
46+
47+
<If condition={props.platform === "generic-host"}>
48+
[![Star on GitHub](https://img.shields.io/github/stars/configcat/.net-sdk.svg?style=social)](https://github.com/configcat/.net-sdk/stargazers)
49+
[![Build status](https://github.com/configcat/.net-sdk/actions/workflows/dotnet-sdk-ci.yml/badge.svg?branch=master)](https://github.com/configcat/.net-sdk/actions/workflows/dotnet-sdk-ci.yml)
50+
[![NuGet Version](https://img.shields.io/nuget/v/ConfigCat.Extensions.Hosting)](https://www.nuget.org/packages/ConfigCat.Extensions.Hosting/)
51+
[![Sonar Coverage](https://img.shields.io/sonar/coverage/net-sdk?logo=SonarCloud&server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/project/overview?id=net-sdk)
52+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=net-sdk&metric=alert_status)](https://sonarcloud.io/dashboard?id=net-sdk)
53+
</If>
4454

4555
<If condition={!props.platform}>
4656

@@ -63,7 +73,7 @@ export const getAdjustedToc = (platform) => {
6373
- [MAUI](https://dotnet.microsoft.com/en-us/apps/maui)
6474
- [Worker Services](https://learn.microsoft.com/en-us/dotnet/core/extensions/workers)
6575
- Any other application built on [.NET Generic Host](https://learn.microsoft.com/en-us/dotnet/core/extensions/generic-host) (`Microsoft.Extensions.Hosting`)
66-
or [.NET's standard dependency injection](https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection/overview) (`Microsoft.Extensions.DependencyInjection`).
76+
or [.NET's standard dependency injection](https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection/overview) (`Microsoft.Extensions.DependencyInjection`).
6777
:::
6878

6979
</If>
@@ -1585,7 +1595,7 @@ Then configure the client to use the `MyCustomOverrideDataSource` implementation
15851595
15861596
<If condition={props.platform === "generic-host"}>
15871597
1588-
The SDK automatically configures the clients to integrate with `Microsoft.Extensions.Logging`, the [the built-in logging framework](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging)
1598+
The SDK automatically configures the registered clients to integrate with `Microsoft.Extensions.Logging`, the [built-in logging framework](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging)
15891599
of .NET Core/.NET 5+. Accordingly, you can set log levels using the standard configuration approach described [here](https://learn.microsoft.com/en-us/dotnet/core/extensions/logging/overview#configure-logging).
15901600
E.g., via `appsettings.json`:
15911601

0 commit comments

Comments
 (0)