Click or drag to resize

LdClient Class

A client for the LaunchDarkly API. Client instances are thread-safe. Applications should instantiate a single LdClient for the lifetime of their application.
Inheritance Hierarchy
SystemObject
  LaunchDarkly.ClientLdClient

Namespace:  LaunchDarkly.Client
Assembly:  LaunchDarkly.ServerSdk (in LaunchDarkly.ServerSdk.dll) Version: 5.13.0
Syntax
public sealed class LdClient : IDisposable, 
	ILdClient, ILdCommonClient

The LdClient type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleLdClient(String)
Creates a new client instance that connects to LaunchDarkly with the default configuration.
Public methodCode exampleLdClient(Configuration)
Creates a new client to connect to LaunchDarkly with a custom configuration.
Public methodLdClient(Configuration, IEventProcessor) Obsolete.
Deprecated; please use EventProcessorFactory(IEventProcessorFactory) instead if you want to specify a custom analytics event processor.
Top
Properties
  NameDescription
Public propertyVersion
The current version string of the SDK.
Top
Methods
  NameDescription
Public methodAllFlags Obsolete.
Public methodAllFlagsState
Returns an object that encapsulates the state of all feature flags for a given user, which can be passed to front-end code.
Public methodBoolVariation
Calculates the boolean value of a feature flag for a given user.
Public methodBoolVariationDetail
Calculates the boolean value of a feature flag for a given user, and returns an object that describes the way the value was determined.
Public methodDispose
Shuts down the client and releases any resources it is using.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFloatVariation
Calculates the floating point numeric value of a feature flag for a given user.
Public methodFloatVariationDetail
Calculates the floating point numeric value of a feature flag for a given user, and returns an object that describes the way the value was determined.
Public methodFlush
Tells the client that all pending analytics events should be delivered as soon as possible.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIdentify
Registers the user.
Public methodInitialized
Tests whether the client is ready to be used.
Public methodIntVariation
Calculates the integer value of a feature flag for a given user.
Public methodIntVariationDetail
Calculates the integer value of a feature flag for a given user, and returns an object that describes the way the value was determined.
Public methodIsOffline
Tests whether the client is configured to be offline.
Public methodJsonVariation(String, User, LdValue)
Calculates the value of a feature flag for a given user as any JSON value type.
Public methodJsonVariation(String, User, JToken) Obsolete.
Calculates the value of a feature flag for a given user as any JSON value type.
Public methodJsonVariationDetail(String, User, LdValue)
Calculates the value of a feature flag for a given user as any JSON value type, and returns an object that describes the way the value was determined.
Public methodJsonVariationDetail(String, User, JToken) Obsolete.
Calculates the value of a feature flag for a given user as any JSON value type, and returns an object that describes the way the value was determined.
Public methodSecureModeHash
Creates a hash string that can be used by the JavaScript SDK to identify a user.
Public methodStringVariation
Calculates the string value of a feature flag for a given user.
Public methodStringVariationDetail
Calculates the string value of a feature flag for a given user, and returns an object that describes the way the value was determined.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTrack(String, User)
Tracks that a user performed an event.
Public methodTrack(String, User, LdValue)
Tracks that a user performed an event.
Public methodTrack(String, User, String) Obsolete.
Tracks that a user performed an event (obsolete overload).
Public methodTrack(String, JToken, User) Obsolete.
Tracks that a user performed an event (obsolete overload).
Public methodTrack(String, User, LdValue, Double)
Tracks that a user performed an event, and provides an additional numeric value for custom metrics.
Top
Extension Methods
See Also