Class LdClient
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public sealed class LdClient : IDisposable, ILdClient
Constructors
LdClient(Configuration)
Declaration
public LdClient(Configuration config)
Parameters
LdClient(string)
Declaration
public LdClient(string sdkKey)
Parameters
Type |
Name |
Description |
string |
sdkKey |
|
Properties
BigSegmentStoreStatusProvider
Declaration
public IBigSegmentStoreStatusProvider BigSegmentStoreStatusProvider { get; }
Property Value
DataSourceStatusProvider
Declaration
public IDataSourceStatusProvider DataSourceStatusProvider { get; }
Property Value
DataStoreStatusProvider
Declaration
public IDataStoreStatusProvider DataStoreStatusProvider { get; }
Property Value
FlagTracker
Declaration
public IFlagTracker FlagTracker { get; }
Property Value
Initialized
Declaration
public bool Initialized { get; }
Property Value
Version
Declaration
public Version Version { get; }
Property Value
Methods
AllFlagsState(Context, params FlagsStateOption[])
Declaration
public FeatureFlagsState AllFlagsState(Context context, params FlagsStateOption[] options)
Parameters
Returns
BoolVariation(string, Context, bool)
Declaration
public bool BoolVariation(string key, Context context, bool defaultValue = false)
Parameters
Returns
BoolVariationDetail(string, Context, bool)
Declaration
public EvaluationDetail<bool> BoolVariationDetail(string key, Context context, bool defaultValue)
Parameters
Returns
Dispose()
Declaration
DoubleVariation(string, Context, double)
Declaration
public double DoubleVariation(string key, Context context, double defaultValue)
Parameters
Returns
DoubleVariationDetail(string, Context, double)
Declaration
public EvaluationDetail<double> DoubleVariationDetail(string key, Context context, double defaultValue)
Parameters
Returns
FloatVariation(string, Context, float)
Declaration
public float FloatVariation(string key, Context context, float defaultValue)
Parameters
Returns
FloatVariationDetail(string, Context, float)
Declaration
public EvaluationDetail<float> FloatVariationDetail(string key, Context context, float defaultValue)
Parameters
Returns
Flush()
Declaration
FlushAndWait(TimeSpan)
Declaration
public bool FlushAndWait(TimeSpan timeout)
Parameters
Returns
GetLogger()
Declaration
public Logger GetLogger()
Returns
Identify(Context)
Declaration
public void Identify(Context context)
Parameters
Type |
Name |
Description |
Context |
context |
|
IntVariation(string, Context, int)
Declaration
public int IntVariation(string key, Context context, int defaultValue)
Parameters
Returns
IntVariationDetail(string, Context, int)
Declaration
public EvaluationDetail<int> IntVariationDetail(string key, Context context, int defaultValue)
Parameters
Returns
IsOffline()
Declaration
Returns
JsonVariation(string, Context, LdValue)
Declaration
public LdValue JsonVariation(string key, Context context, LdValue defaultValue)
Parameters
Returns
JsonVariationDetail(string, Context, LdValue)
Declaration
public EvaluationDetail<LdValue> JsonVariationDetail(string key, Context context, LdValue defaultValue)
Parameters
Returns
MigrationVariation(string, Context, MigrationStage)
Declaration
public MigrationVariation MigrationVariation(string key, Context context, MigrationStage defaultStage)
Parameters
Returns
SecureModeHash(Context)
Declaration
public string SecureModeHash(Context context)
Parameters
Type |
Name |
Description |
Context |
context |
|
Returns
StringVariation(string, Context, string)
Declaration
public string StringVariation(string key, Context context, string defaultValue)
Parameters
Returns
StringVariationDetail(string, Context, string)
Declaration
public EvaluationDetail<string> StringVariationDetail(string key, Context context, string defaultValue)
Parameters
Returns
Track(string, Context)
Declaration
public void Track(string name, Context context)
Parameters
Track(string, Context, LdValue)
Declaration
public void Track(string name, Context context, LdValue data)
Parameters
Track(string, Context, LdValue, double)
Declaration
public void Track(string name, Context context, LdValue data, double metricValue)
Parameters
TrackMigration(MigrationOpTracker)
Declaration
public void TrackMigration(MigrationOpTracker tracker)
Parameters
Implements
Extension Methods