Skip to content

Commit 1612dc4

Browse files
authored
chore: Update README basic usage. (#96)
1 parent ba40c75 commit 1612dc4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ The packages will aim to support all current .NET versions. Refer to the current
1717
### Basic Usage
1818

1919
```csharp
20-
using OpenFeature;
20+
using OpenFeature.Model;
2121

2222
// Sets the provider used by the client
23-
Api.Instance.SetProvider(new NoOpProvider());
23+
// If no provider is set, then a default NoOpProvider will be used.
24+
//OpenFeature.Api.Instance.SetProvider(new MyProvider());
25+
2426
// Gets a instance of the feature flag client
25-
var client = OpenFeature.Instance.GetClient();
27+
var client = OpenFeature.Api.Instance.GetClient();
2628
// Evaluation the `my-feature` feature flag
2729
var isEnabled = await client.GetBooleanValue("my-feature", false);
2830

0 commit comments

Comments
 (0)