LaunchDarkly Dotnet Server SDK
Search Results for

    Show / Hide Table of Contents

    Namespace LaunchDarkly.Sdk.Server.Hooks

    Classes

    EvaluationSeriesContext

    EvaluationSeriesContext represents parameters associated with a feature flag evaluation. It is made available in Hook stage callbacks.

    Hook

    A Hook is a set of user-defined callbacks that are executed by the SDK at various points of interest. To create your own hook with customized logic, derive from Hook and override its methods.

    Hook currently defines an "evaluation" series, which is composed of two stages: "beforeEvaluation" and "afterEvaluation".

    These are executed by the SDK before and after the evaluation of a feature flag.

    Multiple hooks may be configured in the SDK. By default, the SDK will execute each hook's beforeEvaluation stage in the order they were configured, and afterEvaluation in reverse order.

    This means the last hook defined will tightly wrap the evaluation process, while hooks defined earlier in the sequence are nested outside of it.

    HookMetadata

    HookMetadata contains information related to a Hook which can be inspected by the SDK, or within a hook stage.

    Method

    Method represents the SDK client method that triggered a hook invocation.

    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();
    In this article
    Back to top Generated by DocFX