Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Jul 31, 2024
1 parent 08e6e16 commit 85bb5fe
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
- .NET Framework 4.5+
- Other runtimes which implement .NET Standard 2.0+ like .NET Core 2.0+, Xamarin.Android 8.0+, Xamarin.iOS 10.14+, etc. (For more details, please refer to [this table](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0).)

https://configcat.com
Starting with v9.3.0, the ConfigCat SDK can be used in applications that employ [trimmed self-contained](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trim-self-contained) or various ahead-of-time (AOT) compilation deployment models.
The SDK has been tested with the following AOT solutions:
* [Native AOT](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/) - see also [Sample .NET Console app](https://github.com/configcat/.net-sdk/tree/master/samples/ConsoleApp)
* [Mono WebAssembly AOT/Emscripten (wasm-tools)](https://learn.microsoft.com/en-us/aspnet/core/blazor/webassembly-build-tools-and-aot?view=aspnetcore-8.0) - see also [Sample ASP.NET Core Blazor WebAssembly app](https://github.com/configcat/.net-sdk/tree/master/samples/BlazorWasm)
* [IL2CPP](https://docs.unity3d.com/2021.3/Documentation/Manual/IL2CPP.html) - see also [Sample Unity WebGL scripts](https://github.com/configcat/.net-sdk/tree/master/samples/UnityWebGL)

ConfigCat SDK for .NET provides easy integration for your application to ConfigCat.

Expand Down Expand Up @@ -48,7 +52,7 @@ var client = ConfigCatClient.Get("#YOUR-SDK-KEY#");

### 5. Get your setting value:
```c#
var isMyAwesomeFeatureEnabled = client.GetValue("isMyAwesomeFeatureEnabled", false);
var isMyAwesomeFeatureEnabled = await client.GetValueAsync("isMyAwesomeFeatureEnabled", false);

if(isMyAwesomeFeatureEnabled)
{
Expand All @@ -74,16 +78,18 @@ Read more about [Targeting here](https://configcat.com/docs/advanced/targeting).
```c#
User currentUser = new User("435170f4-8a8b-4b67-a723-505ac7cdea92");

var isMyAwesomeFeatureEnabled = client.GetValue(
var isMyAwesomeFeatureEnabled = await client.GetValueAsync(
"isMyAwesomeFeatureEnabled",
defaultValue: false,
user: currentUser);
```

## Sample/Demo apps
* [Sample Console App](https://github.com/configcat/.net-sdk/tree/master/samples/ConsoleApp)
* [Sample Web App](https://github.com/configcat/.net-sdk/tree/master/samples/ASP.NETCore)

* [Sample Multi Page Web App](https://github.com/configcat/.net-sdk/tree/master/samples/ASP.NETCore)
* [Sample Single Page Web App](https://github.com/configcat/.net-sdk/tree/master/samples/BlazorWasm)
* [Sample Mobile/Windows Store App](https://github.com/configcat/.net-sdk/tree/master/samples/MAUI)

## Polling Modes
The ConfigCat SDK supports 3 different polling mechanisms to acquire the setting values from ConfigCat. After latest setting values are downloaded, they are stored in the internal cache then all requests are served from there. Read more about Polling Modes and how to use them at [ConfigCat Docs](https://configcat.com/docs/sdk-reference/dotnet/).

Expand Down
2 changes: 1 addition & 1 deletion samples/ASP.NETCore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a simple .NET Core web application to demonstrate how to use the ConfigCat SDK.

1. Install [.NET Core](https://dotnet.microsoft.com/download)
1. Install the [.NET SDK](https://dotnet.microsoft.com/download)
2. Change dir to `/WebApplication`
```bash
cd WebApplication
Expand Down
2 changes: 1 addition & 1 deletion samples/BlazorWasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a simple [ASP.NET Core Blazor WebAssembly](https://learn.microsoft.com/en-us/aspnet/core/blazor) application to demonstrate how to use the ConfigCat SDK.

1. Install the [.NET 8 SDK](https://dotnet.microsoft.com/download)
1. Install the [.NET SDK](https://dotnet.microsoft.com/download)
2. Run app
```bash
dotnet run -- urls=http://localhost:5000
Expand Down
6 changes: 3 additions & 3 deletions samples/ConsoleApp/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Sample .NET Core Console app
# Sample .NET Console app

This is a simple .NET Core Console application to demonstrate how to use the ConfigCat SDK.
This is a simple .NET Console application to demonstrate how to use the ConfigCat SDK.

1. Install [.NET Core](https://dotnet.microsoft.com/download)
1. Install the [.NET SDK](https://dotnet.microsoft.com/download)

2. Run sample app:
```bash
Expand Down
2 changes: 1 addition & 1 deletion samples/UnityWebGL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Since NuGet packages cannot be referenced in Unity projects directly, the SDK's
* [System.Text.Json v6.0.0](https://www.nuget.org/packages/System.Text.Json/6.0.0)
* [System.Threading.Tasks.Extensions v4.5.4](https://www.nuget.org/packages/System.Threading.Tasks.Extensions/4.5.4)

Tested on Unity 2021.3 LTS.
Tested on Unity 2021.3 LTS and 6000.0.

0 comments on commit 85bb5fe

Please sign in to comment.