Search Results for

    Show / Hide Table of Contents

    Interface IContext

    Passed to the callback methods of PushPullStage<TIn, TOut> and StatefulStage<TIn, TOut>.

    Inherited Members
    ILifecycleContext.Materializer
    ILifecycleContext.Attributes
    Namespace: Akka.Streams.Stage
    Assembly: Akka.Streams.dll
    Syntax
    public interface IContext : ILifecycleContext

    Properties

    | Edit this page View Source

    IsFinishing

    This returns true after AbsorbTermination() has been used.

    Declaration
    bool IsFinishing { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    AbsorbTermination()

    Puts the stage in a finishing state so that final elements can be pushed from onPull.

    Declaration
    ITerminationDirective AbsorbTermination()
    Returns
    Type Description
    ITerminationDirective

    TBD

    | Edit this page View Source

    Fail(Exception)

    Cancel upstreams and complete downstreams with failure.

    Declaration
    FreeDirective Fail(Exception cause)
    Parameters
    Type Name Description
    Exception cause

    TBD

    Returns
    Type Description
    FreeDirective

    TBD

    | Edit this page View Source

    Finish()

    Cancel upstreams and complete downstreams successfully.

    Declaration
    FreeDirective Finish()
    Returns
    Type Description
    FreeDirective

    TBD

    | Edit this page View Source

    Finish(Exception)

    Declaration
    FreeDirective Finish(Exception cause)
    Parameters
    Type Name Description
    Exception cause
    Returns
    Type Description
    FreeDirective
    | Edit this page View Source

    Pull()

    Request for more elements from upstreams.

    Declaration
    IUpstreamDirective Pull()
    Returns
    Type Description
    IUpstreamDirective

    TBD

    | Edit this page View Source

    Push(object)

    Push one element to downstreams.

    Declaration
    IDownstreamDirective Push(object element)
    Parameters
    Type Name Description
    object element

    TBD

    Returns
    Type Description
    IDownstreamDirective

    TBD

    | Edit this page View Source

    PushAndFinish(object)

    Push one element to downstream immediately followed by cancel of upstreams and complete of downstreams.

    Declaration
    IDownstreamDirective PushAndFinish(object element)
    Parameters
    Type Name Description
    object element

    TBD

    Returns
    Type Description
    IDownstreamDirective

    TBD

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET