LaunchDarkly Dotnet Server SDK
Search Results for

    Show / Hide Table of Contents

    Class SeriesDataBuilder

    Builder for constructing series data, which is passed to between Hook methods.

    Use of this builder is optional; it is provided for convenience.

    // ImmutableDictionary passed into Hook method:
             var data = ...
             // Add a new key and return an updated dictionary:
             return new SeriesDataBuilder(data).Set("key", "value").Build();
    Inheritance
    object
    SeriesDataBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: LaunchDarkly.Sdk.Server.Hooks
    Assembly: LaunchDarkly.ServerSdk.dll
    Syntax
    public sealed class SeriesDataBuilder

    Constructors

    | Edit this page View Source

    SeriesDataBuilder()

    Constructs a new builder with empty series data.

    Declaration
    public SeriesDataBuilder()
    | Edit this page View Source

    SeriesDataBuilder(ImmutableDictionary<string, object>)

    Constructs a new builder from pre-existing series data.

    Declaration
    public SeriesDataBuilder(ImmutableDictionary<string, object> dictionary)
    Parameters
    Type Name Description
    ImmutableDictionary<string, object> dictionary

    pre-existing series data

    Methods

    | Edit this page View Source

    Build()

    Returns a SeriesData based on the current state of the builder.

    Declaration
    public ImmutableDictionary<string, object> Build()
    Returns
    Type Description
    ImmutableDictionary<string, object>

    new series data

    | Edit this page View Source

    Set(string, object)

    Sets a key-value pair.

    Declaration
    public SeriesDataBuilder Set(string key, object value)
    Parameters
    Type Name Description
    string key

    key of value

    object value

    the value to set

    Returns
    Type Description
    SeriesDataBuilder

    this builder

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX