You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-6Lines changed: 46 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@ This provider allows for using LaunchDarkly with the OpenFeature SDK for .NET.
6
6
7
7
This provider is designed primarily for use in multi-user systems such as web servers and applications. It follows the server-side LaunchDarkly model for multi-user contexts. It is not intended for use in desktop and embedded systems applications.
8
8
9
-
This provider is a beta version and should not be considered ready for production use while this message is visible.
9
+
> [!WARNING]
10
+
> This is a beta version. The API is not stabilized and may introduce breaking changes.
11
+
12
+
> [!NOTE]
13
+
> This OpenFeature provider uses production versions of the LaunchDarkly SDK, which adhere to our standard [versioning policy](https://docs.launchdarkly.com/home/relay-proxy/versioning).
10
14
11
15
# LaunchDarkly overview
12
16
@@ -25,25 +29,28 @@ This version of the SDK is built for the following targets:
Refer to the [SDK reference guide](https://docs.launchdarkly.com/sdk/server-side/dotnet) for instructions on getting started with using the SDK.
@@ -144,6 +151,39 @@ var evaluationContext = EvaluationContext.Builder()
144
151
.Build();
145
152
```
146
153
154
+
### Advanced Usage
155
+
156
+
#### Asynchronous Initialization
157
+
158
+
The LaunchDarkly SDK by default blocks on construction for up to 5 seconds for initialization. If you require construction to be non-blocking, then you can adjust the `startWaitTime` to `TimeSpan.Zero`. Initialization will be completed asynchronously and OpenFeature will emit a ready event when the provider has initialized. The `SetProviderAsync` method can be awaited to wait for the SDK to finish initialization.
159
+
160
+
```csharp
161
+
varconfig=Configuration.Builder("my-sdk-key")
162
+
.StartWaitTime(TimeSpan.Zero)
163
+
.Build();
164
+
```
165
+
166
+
#### Provider Shutdown
167
+
168
+
This provider cannot be re-initialized after being shutdown. This will not impact typical usage, as the LaunchDarkly provider will be set once and used throughout the execution of the application. If you remove the LaunchDarkly Provider, by replacing the default provider or any named providers aliased to the LaunchDarkly provider, then you must create a new provider instance.
Read our [documentation](http://docs.launchdarkly.com) for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the [complete reference guide for this SDK](https://docs.launchdarkly.com/sdk/server-side/dotnet).
0 commit comments