LaunchDarkly Dotnet Client SDK
Search Results for

    Show / Hide Table of Contents

    Class LdClientContext

    Encapsulates SDK client context when creating components.

    Inheritance
    object
    LdClientContext
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 Source

    LdClientContext(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 Source

    BaseLogger

    The configured logger for the SDK.

    Declaration
    public Logger BaseLogger { get; }
    Property Value
    Type Description
    Logger
    | Edit this page View Source

    CurrentContext

    The current evaluation context.

    Declaration
    public Context CurrentContext { get; }
    Property Value
    Type Description
    Context
    | Edit this page View Source

    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.

    | Edit this page View Source

    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
    | Edit this page View Source

    EvaluationReasons

    True if evaluation reasons are enabled.

    Declaration
    public bool EvaluationReasons { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Http

    The HTTP configuration properties.

    Declaration
    public HttpConfiguration Http { get; }
    Property Value
    Type Description
    HttpConfiguration
    | Edit this page View Source

    InBackground

    True if the application is currently in a background state.

    Declaration
    public bool InBackground { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    MobileKey

    The configured mobile key.

    Declaration
    public string MobileKey { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ServiceEndpoints

    The configured service base URIs.

    Declaration
    public ServiceEndpoints ServiceEndpoints { get; }
    Property Value
    Type Description
    ServiceEndpoints
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX