Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
deprecating some additional user related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tanderson-ld committed May 3, 2024
1 parent a883902 commit 1af06fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/LaunchDarkly.ClientSdk/ILdClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static EvaluationDetail<T> EnumVariationDetail<T>(this ILdClient client,
/// to be logged and no event will be sent</param>
/// <param name="maxWaitTime">the maximum time to wait for the new flag values</param>
/// <returns>true if new flag values were obtained</returns>
/// <seealso cref="ILdClient.Identify(Context, TimeSpan)"/>
[Obsolete("User has been superseded by Context. See ILdClient.Identify(Context, TimeSpan)")]
public static bool Identify(this ILdClient client, User user, TimeSpan maxWaitTime) =>
client.Identify(Context.FromUser(user), maxWaitTime);

Expand All @@ -123,7 +123,7 @@ public static bool Identify(this ILdClient client, User user, TimeSpan maxWaitTi
/// <param name="user">the user; should not be null (a null reference will cause an error
/// to be logged and no event will be sent</param>
/// <returns>a task that yields true if new flag values were obtained</returns>
/// <seealso cref="ILdClient.Identify(Context, TimeSpan)"/>
[Obsolete("User has been superseded by Context. See ILdClient.Identify(Context, TimeSpan)")]
public static Task<bool> IdentifyAsync(this ILdClient client, User user) =>
client.IdentifyAsync(Context.FromUser(user));
}
Expand Down
2 changes: 0 additions & 2 deletions src/LaunchDarkly.ClientSdk/Interfaces/ILdClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ public interface ILdClient : IDisposable
/// <param name="maxWaitTime">the maximum time to wait for the new flag values</param>
/// <returns>true if new flag values were obtained</returns>
/// <seealso cref="IdentifyAsync(Context)"/>
/// <seealso cref="ILdClientExtensions.Identify(ILdClient, User, TimeSpan)"/>
bool Identify(Context context, TimeSpan maxWaitTime);

/// <summary>
Expand All @@ -349,7 +348,6 @@ public interface ILdClient : IDisposable
/// about setting the context and optionally requesting a unique key for it</param>
/// <returns>a task that yields true if new flag values were obtained</returns>
/// <seealso cref="Identify(Context, TimeSpan)"/>
/// <seealso cref="ILdClientExtensions.IdentifyAsync(ILdClient, User)"/>
Task<bool> IdentifyAsync(Context context);

/// <summary>
Expand Down

0 comments on commit 1af06fc

Please sign in to comment.