LaunchDarkly Dotnet Client SDK
Search Results for

    Show / Hide Table of Contents

    Class StateMonitor<StateT, UpdateT>

    Inheritance
    object
    StateMonitor<StateT, UpdateT>
    Implements
    IDisposable
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LaunchDarkly.Sdk.Internal.Concurrent
    Assembly: LaunchDarkly.InternalSdk.dll
    Syntax
    public sealed class StateMonitor<StateT, UpdateT> : IDisposable where StateT : struct
    Type Parameters
    Name Description
    StateT
    UpdateT

    Constructors

    StateMonitor(StateT, Func<StateT, UpdateT, StateT?>, Logger)

    Declaration
    public StateMonitor(StateT initial, Func<StateT, UpdateT, StateT?> updateFn, Logger log)
    Parameters
    Type Name Description
    StateT initial
    Func<StateT, UpdateT, StateT?> updateFn
    Logger log

    Properties

    Current

    Declaration
    public StateT Current { get; }
    Property Value
    Type Description
    StateT

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Update(UpdateT, out StateT)

    Declaration
    public bool Update(UpdateT update, out StateT newState)
    Parameters
    Type Name Description
    UpdateT update
    StateT newState
    Returns
    Type Description
    bool

    WaitFor(Func<StateT, bool>, TimeSpan)

    Declaration
    public StateT? WaitFor(Func<StateT, bool> testFn, TimeSpan timeout)
    Parameters
    Type Name Description
    Func<StateT, bool> testFn
    TimeSpan timeout
    Returns
    Type Description
    StateT?

    WaitForAsync(Func<StateT, bool>, TimeSpan)

    Declaration
    public Task<StateT?> WaitForAsync(Func<StateT, bool> testFn, TimeSpan timeout)
    Parameters
    Type Name Description
    Func<StateT, bool> testFn
    TimeSpan timeout
    Returns
    Type Description
    Task<StateT?>

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX