LaunchDarkly Dotnet Server SDK Telemetry Integration
Search Results for

    Show / Hide Table of Contents

    Struct Context

    Implements
    IEquatable<Context>
    IJsonSerializable
    Inherited Members
    object.GetType()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LaunchDarkly.Sdk
    Assembly: LaunchDarkly.CommonSdk.dll
    Syntax
    [JsonConverter(typeof(LdJsonConverters.ContextConverter))]
    public readonly struct Context : IEquatable<Context>, IJsonSerializable

    Properties

    Anonymous

    Declaration
    public bool Anonymous { get; }
    Property Value
    Type Description
    bool

    Defined

    Declaration
    public bool Defined { get; }
    Property Value
    Type Description
    bool

    Error

    Declaration
    public string Error { get; }
    Property Value
    Type Description
    string

    FullyQualifiedKey

    Declaration
    public string FullyQualifiedKey { get; }
    Property Value
    Type Description
    string

    Key

    Declaration
    public string Key { get; }
    Property Value
    Type Description
    string

    Kind

    Declaration
    public ContextKind Kind { get; }
    Property Value
    Type Description
    ContextKind

    MultiKindContexts

    Declaration
    public ImmutableList<Context> MultiKindContexts { get; }
    Property Value
    Type Description
    ImmutableList<Context>

    Multiple

    Declaration
    public bool Multiple { get; }
    Property Value
    Type Description
    bool

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    OptionalAttributeNames

    Declaration
    public IEnumerable<string> OptionalAttributeNames { get; }
    Property Value
    Type Description
    IEnumerable<string>

    PrivateAttributes

    Declaration
    public ImmutableList<AttributeRef> PrivateAttributes { get; }
    Property Value
    Type Description
    ImmutableList<AttributeRef>

    Valid

    Declaration
    public bool Valid { get; }
    Property Value
    Type Description
    bool

    Methods

    Builder(ContextKind, string)

    Declaration
    public static ContextBuilder Builder(ContextKind kind, string key)
    Parameters
    Type Name Description
    ContextKind kind
    string key
    Returns
    Type Description
    ContextBuilder

    Builder(string)

    Declaration
    public static ContextBuilder Builder(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    ContextBuilder

    BuilderFromContext(Context)

    Declaration
    public static ContextBuilder BuilderFromContext(Context context)
    Parameters
    Type Name Description
    Context context
    Returns
    Type Description
    ContextBuilder

    Equals(Context)

    Declaration
    public bool Equals(Context other)
    Parameters
    Type Name Description
    Context other
    Returns
    Type Description
    bool

    Equals(object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    FromUser(User)

    Declaration
    public static Context FromUser(User user)
    Parameters
    Type Name Description
    User user
    Returns
    Type Description
    Context

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    GetValue(in AttributeRef)

    Declaration
    public LdValue GetValue(in AttributeRef attributeRef)
    Parameters
    Type Name Description
    AttributeRef attributeRef
    Returns
    Type Description
    LdValue

    GetValue(string)

    Declaration
    public LdValue GetValue(string attributeName)
    Parameters
    Type Name Description
    string attributeName
    Returns
    Type Description
    LdValue

    MultiBuilder()

    Declaration
    public static ContextMultiBuilder MultiBuilder()
    Returns
    Type Description
    ContextMultiBuilder

    New(ContextKind, string)

    Declaration
    public static Context New(ContextKind kind, string key)
    Parameters
    Type Name Description
    ContextKind kind
    string key
    Returns
    Type Description
    Context

    New(string)

    Declaration
    public static Context New(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    Context

    NewMulti(params Context[])

    Declaration
    public static Context NewMulti(params Context[] contexts)
    Parameters
    Type Name Description
    Context[] contexts
    Returns
    Type Description
    Context

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    TryGetContextByKind(ContextKind, out Context)

    Declaration
    public bool TryGetContextByKind(ContextKind kind, out Context context)
    Parameters
    Type Name Description
    ContextKind kind
    Context context
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    IJsonSerializable
    In this article
    Back to top Generated by DocFX