Class LdClientContext
Encapsulates SDK client context when creating components.
Inherited Members
Namespace: LaunchDarkly.Sdk.Client.Subsystems
Assembly: LaunchDarkly.ClientSdk.dll
Syntax
public sealed class LdClientContext
Remarks
The component factory interface IComponentConfigurer<T> receives this class as a parameter. Its public properties provide information about the SDK configuration and environment. The SDK may also include non-public properties that are relevant only when creating one of the built-in component types and are not accessible to custom components.
Constructors
| Edit this page View SourceLdClientContext(Configuration, Context, object)
Creates an instance.
Declaration
public LdClientContext(Configuration configuration, Context currentContext, object eventSender = null)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | the SDK configuration |
Context | currentContext | the current evaluation context |
object | eventSender |
Properties
| Edit this page View SourceBaseLogger
The configured logger for the SDK.
Declaration
public Logger BaseLogger { get; }
Property Value
Type | Description |
---|---|
Logger |
CurrentContext
The current evaluation context.
Declaration
public Context CurrentContext { get; }
Property Value
Type | Description |
---|---|
Context |
DataSourceUpdateSink
A component that IDataSource implementations use to deliver status updates to the SDK.
Declaration
public IDataSourceUpdateSink DataSourceUpdateSink { get; }
Property Value
Type | Description |
---|---|
IDataSourceUpdateSink |
Remarks
This property is only set when the SDK is calling an IDataSource factory. Otherwise it is null.
EnableBackgroundUpdating
Whether to enable feature flag updates when the application is running in the background.
Declaration
public bool EnableBackgroundUpdating { get; }
Property Value
Type | Description |
---|---|
bool |
EvaluationReasons
True if evaluation reasons are enabled.
Declaration
public bool EvaluationReasons { get; }
Property Value
Type | Description |
---|---|
bool |
Http
The HTTP configuration properties.
Declaration
public HttpConfiguration Http { get; }
Property Value
Type | Description |
---|---|
HttpConfiguration |
InBackground
True if the application is currently in a background state.
Declaration
public bool InBackground { get; }
Property Value
Type | Description |
---|---|
bool |
MobileKey
The configured mobile key.
Declaration
public string MobileKey { get; }
Property Value
Type | Description |
---|---|
string |
ServiceEndpoints
The configured service base URIs.
Declaration
public ServiceEndpoints ServiceEndpoints { get; }
Property Value
Type | Description |
---|---|
ServiceEndpoints |