Search Results for

    Show / Hide Table of Contents

    Class StreamScope

    • Per-stream state container carried by Delta.
    • Stores typed state objects internally (hidden object usage).
    • States must be mutated, not replaced.
    Inheritance
    object
    StreamScope
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.IO.Networking.RESTApi
    Assembly: Glitch9.IO.dll
    Syntax
    public sealed class StreamScope

    Methods

    | Edit this page View Source

    GetOrCreateState<TState>()

    Declaration
    public TState GetOrCreateState<TState>() where TState : class, new()
    Returns
    Type Description
    TState
    Type Parameters
    Name Description
    TState
    | Edit this page View Source

    GetState<TState>()

    Declaration
    public TState GetState<TState>() where TState : class
    Returns
    Type Description
    TState
    Type Parameters
    Name Description
    TState
    | Edit this page View Source

    SetState<TState>(TState)

    Use only for advanced cases. Prefer GetOrCreate/GetRequired.

    Declaration
    public void SetState<TState>(TState instance) where TState : class
    Parameters
    Type Name Description
    TState instance
    Type Parameters
    Name Description
    TState
    | Edit this page View Source

    ToString()

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

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation