Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 089733d

Browse files
LaunchDarklyReleaseBoteli-darklybwoskow-ldLaunchDarklyCIember-stevens
authored
prepare 7.1.0 release (#179)
## [7.1.0] - 2023-10-16 ### Deprecated: - Deprecated methods which take the `User` type. These methods are removed in 8.0.0. Currently a `User` can be converted to a `Context` using `Context.FromUser`. The ability to do this conversion may be removed in a future version. --------- Co-authored-by: Eli Bishop <[email protected]> Co-authored-by: Ben Woskow <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: Ember Stevens <[email protected]> Co-authored-by: ember-stevens <[email protected]> Co-authored-by: LaunchDarklyReleaseBot <[email protected]> Co-authored-by: Ryan Lamb <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: ld-repository-standards[bot] <113625520+ld-repository-standards[bot]@users.noreply.github.com> Co-authored-by: Kane Parkinson <[email protected]>
1 parent bd8a76c commit 089733d

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Repository Maintainers
2+
* @launchdarkly/team-sdk-net

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For using LaunchDarkly in *client-side* .NET applications, including mobile (Xam
1010

1111
## LaunchDarkly overview
1212

13-
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!
13+
[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!
1414

1515
[![Twitter Follow](https://img.shields.io/twitter/follow/launchdarkly.svg?style=social&label=Follow&maxAge=2592000)](https://twitter.com/intent/follow?screen_name=launchdarkly)
1616

@@ -51,7 +51,7 @@ Public Key Token: f86add69004e6885
5151

5252
## Learn more
5353

54-
Check out our [documentation](https://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/docs/dotnet-sdk-reference).
54+
Read our [documentation](https://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/docs/dotnet-sdk-reference).
5555

5656
The authoritative description of all types, properties, and methods is in the [generated API documentation](https://launchdarkly.github.io/dotnet-server-sdk/).
5757

src/LaunchDarkly.ServerSdk/ILdClientExtensions.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using LaunchDarkly.Sdk.Server.Interfaces;
1+
using System;
2+
using LaunchDarkly.Sdk.Server.Interfaces;
23

34
namespace LaunchDarkly.Sdk.Server
45
{
@@ -85,6 +86,7 @@ public static T EnumVariation<T>(this ILdClient client, string key, Context cont
8586
/// <param name="defaultValue">the default value of the flag (as an enum value)</param>
8687
/// <returns>the variation for the given user, or <c>defaultValue</c> if the flag cannot
8788
/// be evaluated or does not have a valid enum value</returns>
89+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
8890
public static T EnumVariation<T>(this ILdClient client, string key, User user, T defaultValue) =>
8991
EnumVariation<T>(client, key, Context.FromUser(user), defaultValue);
9092

@@ -142,6 +144,7 @@ public static EvaluationDetail<T> EnumVariationDetail<T>(this ILdClient client,
142144
/// be evaluated</returns>
143145
/// <seealso cref="ILdClient.BoolVariation(string, Context, bool)"/>
144146
/// <seealso cref="BoolVariationDetail(ILdClient, string, User, bool)"/>
147+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
145148
public static bool BoolVariation(this ILdClient client,
146149
string key, User user, bool defaultValue = false) =>
147150
client.BoolVariation(key, Context.FromUser(user), defaultValue);
@@ -161,6 +164,7 @@ public static bool BoolVariation(this ILdClient client,
161164
/// <returns>an <see cref="EvaluationDetail{T}"/> object</returns>
162165
/// <seealso cref="ILdClient.BoolVariationDetail(string, Context, bool)"/>
163166
/// <seealso cref="BoolVariation(ILdClient, string, User, bool)"/>
167+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
164168
public static EvaluationDetail<bool> BoolVariationDetail(this ILdClient client,
165169
string key, User user, bool defaultValue) =>
166170
client.BoolVariationDetail(key, Context.FromUser(user), defaultValue);
@@ -180,6 +184,7 @@ public static EvaluationDetail<bool> BoolVariationDetail(this ILdClient client,
180184
/// be evaluated</returns>
181185
/// <seealso cref="ILdClient.IntVariation(string, Context, int)"/>
182186
/// <seealso cref="IntVariationDetail(ILdClient, string, User, int)"/>
187+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
183188
public static int IntVariation(this ILdClient client,
184189
string key, User user, int defaultValue) =>
185190
client.IntVariation(key, Context.FromUser(user), defaultValue);
@@ -199,6 +204,7 @@ public static int IntVariation(this ILdClient client,
199204
/// <returns>an <see cref="EvaluationDetail{T}"/> object</returns>
200205
/// <seealso cref="ILdClient.IntVariationDetail(string, Context, int)"/>
201206
/// <seealso cref="IntVariation(ILdClient, string, User, int)"/>
207+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
202208
public static EvaluationDetail<int> IntVariationDetail(this ILdClient client,
203209
string key, User user, int defaultValue) =>
204210
client.IntVariationDetail(key, Context.FromUser(user), defaultValue);
@@ -220,6 +226,7 @@ public static EvaluationDetail<int> IntVariationDetail(this ILdClient client,
220226
/// <seealso cref="ILdClient.FloatVariation(string, Context, float)"/>
221227
/// <seealso cref="FloatVariationDetail(ILdClient, string, User, float)"/>
222228
/// <seealso cref="DoubleVariation(ILdClient, string, User, double)"/>
229+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
223230
public static float FloatVariation(this ILdClient client,
224231
string key, User user, float defaultValue) =>
225232
client.FloatVariation(key, Context.FromUser(user), defaultValue);
@@ -240,6 +247,7 @@ public static float FloatVariation(this ILdClient client,
240247
/// <seealso cref="ILdClient.FloatVariationDetail(string, Context, float)"/>
241248
/// <seealso cref="FloatVariation(ILdClient, string, User, float)"/>
242249
/// <seealso cref="DoubleVariationDetail(ILdClient, string, User, double)"/>
250+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
243251
public static EvaluationDetail<float> FloatVariationDetail(this ILdClient client,
244252
string key, User user, float defaultValue) =>
245253
client.FloatVariationDetail(key, Context.FromUser(user), defaultValue);
@@ -261,6 +269,7 @@ public static EvaluationDetail<float> FloatVariationDetail(this ILdClient client
261269
/// <seealso cref="ILdClient.DoubleVariation(string, Context, double)"/>
262270
/// <seealso cref="DoubleVariationDetail(ILdClient, string, User, double)"/>
263271
/// <seealso cref="FloatVariation(ILdClient, string, User, float)"/>
272+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
264273
public static double DoubleVariation(this ILdClient client,
265274
string key, User user, double defaultValue) =>
266275
client.DoubleVariation(key, Context.FromUser(user), defaultValue);
@@ -281,6 +290,7 @@ public static double DoubleVariation(this ILdClient client,
281290
/// <seealso cref="ILdClient.DoubleVariationDetail(string, Context, double)"/>
282291
/// <seealso cref="DoubleVariation(ILdClient, string, User, double)"/>
283292
/// <seealso cref="FloatVariationDetail(ILdClient, string, User, float)"/>
293+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
284294
public static EvaluationDetail<double> DoubleVariationDetail(this ILdClient client,
285295
string key, User user, double defaultValue) =>
286296
client.DoubleVariationDetail(key, Context.FromUser(user), defaultValue);
@@ -300,6 +310,7 @@ public static EvaluationDetail<double> DoubleVariationDetail(this ILdClient clie
300310
/// be evaluated</returns>
301311
/// <seealso cref="ILdClient.StringVariation(string, Context, string)"/>
302312
/// <seealso cref="StringVariationDetail(ILdClient, string, User, string)"/>
313+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
303314
public static string StringVariation(this ILdClient client,
304315
string key, User user, string defaultValue) =>
305316
client.StringVariation(key, Context.FromUser(user), defaultValue);
@@ -319,6 +330,7 @@ public static string StringVariation(this ILdClient client,
319330
/// <returns>an <see cref="EvaluationDetail{T}"/> object</returns>
320331
/// <seealso cref="ILdClient.StringVariationDetail(string, Context, string)"/>
321332
/// <seealso cref="StringVariation(ILdClient, string, User, string)"/>
333+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
322334
public static EvaluationDetail<string> StringVariationDetail(this ILdClient client,
323335
string key, User user, string defaultValue) =>
324336
client.StringVariationDetail(key, Context.FromUser(user), defaultValue);
@@ -338,6 +350,7 @@ public static EvaluationDetail<string> StringVariationDetail(this ILdClient clie
338350
/// be evaluated</returns>
339351
/// <seealso cref="ILdClient.JsonVariation(string, Context, LdValue)"/>
340352
/// <seealso cref="JsonVariationDetail(ILdClient, string, User, LdValue)"/>
353+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
341354
public static LdValue JsonVariation(this ILdClient client,
342355
string key, User user, LdValue defaultValue) =>
343356
client.JsonVariation(key, Context.FromUser(user), defaultValue);
@@ -357,6 +370,7 @@ public static LdValue JsonVariation(this ILdClient client,
357370
/// <returns>an <see cref="EvaluationDetail{T}"/> object</returns>
358371
/// <seealso cref="ILdClient.JsonVariationDetail(string, Context, LdValue)"/>
359372
/// <seealso cref="JsonVariation(ILdClient, string, User, LdValue)"/>
373+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
360374
public static EvaluationDetail<LdValue> JsonVariationDetail(this ILdClient client,
361375
string key, User user, LdValue defaultValue) =>
362376
client.JsonVariationDetail(key, Context.FromUser(user), defaultValue);
@@ -372,6 +386,7 @@ public static EvaluationDetail<LdValue> JsonVariationDetail(this ILdClient clien
372386
/// <param name="user">the user; should not be null (a null reference will cause an error
373387
/// to be logged and no event will be sent</param>
374388
/// <seealso cref="ILdClient.Identify(Context)"/>
389+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
375390
public static void Identify(this ILdClient client, User user) =>
376391
client.Identify(Context.FromUser(user));
377392

@@ -389,6 +404,7 @@ public static void Identify(this ILdClient client, User user) =>
389404
/// <seealso cref="ILdClient.Track(string, Context)"/>
390405
/// <seealso cref="Track(ILdClient, string, User, LdValue)"/>
391406
/// <seealso cref="Track(ILdClient, string, User, LdValue, double)"/>
407+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
392408
public static void Track(this ILdClient client, string name, User user) =>
393409
client.Track(name, Context.FromUser(user));
394410

@@ -406,6 +422,7 @@ public static void Track(this ILdClient client, string name, User user) =>
406422
/// <seealso cref="ILdClient.Track(string, Context, LdValue)"/>
407423
/// <seealso cref="Track(ILdClient, string, User)"/>
408424
/// <seealso cref="Track(ILdClient, string, User, LdValue, double)"/>
425+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
409426
public static void Track(this ILdClient client,
410427
string name, User user, LdValue data) =>
411428
client.Track(name, Context.FromUser(user), data);
@@ -428,6 +445,7 @@ public static void Track(this ILdClient client,
428445
/// <seealso cref="ILdClient.Track(string, Context, LdValue, double)"/>
429446
/// <seealso cref="Track(ILdClient, string, User)"/>
430447
/// <seealso cref="Track(ILdClient, string, User, LdValue)"/>
448+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
431449
public static void Track(this ILdClient client,
432450
string name, User user, LdValue data, double metricValue) =>
433451
client.Track(name, Context.FromUser(user), data, metricValue);
@@ -447,6 +465,7 @@ public static void Track(this ILdClient client,
447465
/// <returns>a <see cref="FeatureFlagsState"/> object (will never be null; see
448466
/// <see cref="FeatureFlagsState.Valid"/></returns>
449467
/// <seealso cref="ILdClient.AllFlagsState(Context, FlagsStateOption[])"/>
468+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
450469
public static FeatureFlagsState AllFlagsState(this ILdClient client,
451470
User user, params FlagsStateOption[] options) =>
452471
client.AllFlagsState(Context.FromUser(user), options);
@@ -462,6 +481,7 @@ public static FeatureFlagsState AllFlagsState(this ILdClient client,
462481
/// <param name="user">the user attributes</param>
463482
/// <returns>the hash, or null if the hash could not be calculated</returns>
464483
/// <seealso cref="ILdClient.SecureModeHash(Context)"/>
484+
[Obsolete("This overload is obsolete. Please use the overload which accepts a Context.", false)]
465485
public static string SecureModeHash(this ILdClient client, User user) =>
466486
client.SecureModeHash(Context.FromUser(user));
467487
}

src/LaunchDarkly.ServerSdk/Interfaces/IFlagTracker.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public static class IFlagTrackerExtensionMethods
115115
/// <param name="handler">a handler that will receive a <see cref="FlagValueChangeEvent"/>
116116
/// </param>
117117
/// <returns>a handler to be added to <see cref="IFlagTracker.FlagChanged"/></returns>
118+
[Obsolete("This overload is obsolete. Please use the overload which accepts an LdContext.", false)]
118119
public static EventHandler<FlagChangeEvent> FlagValueChangeHandler(
119120
this IFlagTracker flagTracker,
120121
string flagKey,

0 commit comments

Comments
 (0)