Search Results for

    Show / Hide Table of Contents

    Struct DeltaToken<T>

    • Delta token carrying stream context + value + error + scope.
    • Scope is a shared reference per stream (must be carried via Next).
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.IO.Networking.RESTApi
    Assembly: Glitch9.IO.dll
    Syntax
    public readonly struct DeltaToken<T>
    Type Parameters
    Name Description
    T

    Properties

    | Edit this page View Source

    Context

    Declaration
    public EventContext Context { get; }
    Property Value
    Type Description
    EventContext
    | Edit this page View Source

    Error

    Declaration
    public Exception Error { get; }
    Property Value
    Type Description
    Exception
    | Edit this page View Source

    HasData

    Declaration
    public bool HasData { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Scope

    Declaration
    public StreamScope Scope { get; }
    Property Value
    Type Description
    StreamScope
    | Edit this page View Source

    Value

    Declaration
    public T Value { get; }
    Property Value
    Type Description
    T

    Methods

    | Edit this page View Source

    Aggregate<TPrev>(DeltaToken<TPrev>)

    Declaration
    public static DeltaToken<T> Aggregate<TPrev>(DeltaToken<TPrev> carry)
    Parameters
    Type Name Description
    DeltaToken<TPrev> carry
    Returns
    Type Description
    DeltaToken<T>
    Type Parameters
    Name Description
    TPrev
    | Edit this page View Source

    Done<TPrev>(T, DeltaToken<TPrev>)

    Declaration
    public static DeltaToken<T> Done<TPrev>(T data, DeltaToken<TPrev> carry)
    Parameters
    Type Name Description
    T data
    DeltaToken<TPrev> carry
    Returns
    Type Description
    DeltaToken<T>
    Type Parameters
    Name Description
    TPrev
    | Edit this page View Source

    Fail<TPrev>(Exception, DeltaToken<TPrev>)

    Declaration
    public static DeltaToken<T> Fail<TPrev>(Exception error, DeltaToken<TPrev> carry)
    Parameters
    Type Name Description
    Exception error
    DeltaToken<TPrev> carry
    Returns
    Type Description
    DeltaToken<T>
    Type Parameters
    Name Description
    TPrev
    | Edit this page View Source

    Fail<TPrev>(string, DeltaToken<TPrev>)

    Declaration
    public static DeltaToken<T> Fail<TPrev>(string errorMessage, DeltaToken<TPrev> carry)
    Parameters
    Type Name Description
    string errorMessage
    DeltaToken<TPrev> carry
    Returns
    Type Description
    DeltaToken<T>
    Type Parameters
    Name Description
    TPrev
    | Edit this page View Source

    FinalizeStream()

    Declaration
    public DeltaToken<T> FinalizeStream()
    Returns
    Type Description
    DeltaToken<T>
    | 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

    Next<TPrev>(EventContext, T, DeltaToken<TPrev>, Exception)

    Declaration
    public static DeltaToken<T> Next<TPrev>(EventContext ctx, T data, DeltaToken<TPrev> carry, Exception error = null)
    Parameters
    Type Name Description
    EventContext ctx
    T data
    DeltaToken<TPrev> carry
    Exception error
    Returns
    Type Description
    DeltaToken<T>
    Type Parameters
    Name Description
    TPrev
    | Edit this page View Source

    Next<TPrev>(T, DeltaToken<TPrev>, Exception)

    Declaration
    public static DeltaToken<T> Next<TPrev>(T data, DeltaToken<TPrev> carry, Exception error = null)
    Parameters
    Type Name Description
    T data
    DeltaToken<TPrev> carry
    Exception error
    Returns
    Type Description
    DeltaToken<T>
    Type Parameters
    Name Description
    TPrev
    | Edit this page View Source

    Skip<TPrev>(DeltaToken<TPrev>)

    Declaration
    public static DeltaToken<T> Skip<TPrev>(DeltaToken<TPrev> carry)
    Parameters
    Type Name Description
    DeltaToken<TPrev> carry
    Returns
    Type Description
    DeltaToken<T>
    Type Parameters
    Name Description
    TPrev
    | Edit this page View Source

    Start(EventContext?, T, StreamScope)

    Declaration
    public static DeltaToken<T> Start(EventContext? ctx, T data, StreamScope scope)
    Parameters
    Type Name Description
    EventContext? ctx
    T data
    StreamScope scope
    Returns
    Type Description
    DeltaToken<T>

    Extension Methods

    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.GetHashCodeOrDefault<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation