Search Results for

    Show / Hide Table of Contents

    Interface IActorDsl

    TBD

    Namespace: Akka.Actor.Dsl
    Assembly: Akka.dll
    Syntax
    public interface IActorDsl

    Properties

    | Edit this page View Source

    OnPostRestart

    TBD

    Declaration
    Action<Exception, IActorContext> OnPostRestart { get; set; }
    Property Value
    Type Description
    Action<Exception, IActorContext>
    | Edit this page View Source

    OnPostStop

    TBD

    Declaration
    Action<IActorContext> OnPostStop { get; set; }
    Property Value
    Type Description
    Action<IActorContext>
    | Edit this page View Source

    OnPreRestart

    TBD

    Declaration
    Action<Exception, object, IActorContext> OnPreRestart { get; set; }
    Property Value
    Type Description
    Action<Exception, object, IActorContext>
    | Edit this page View Source

    OnPreStart

    TBD

    Declaration
    Action<IActorContext> OnPreStart { get; set; }
    Property Value
    Type Description
    Action<IActorContext>
    | Edit this page View Source

    Strategy

    TBD

    Declaration
    SupervisorStrategy Strategy { get; set; }
    Property Value
    Type Description
    SupervisorStrategy

    Methods

    | Edit this page View Source

    ActorOf(Action<IActorDsl>, string)

    TBD

    Declaration
    IActorRef ActorOf(Action<IActorDsl> config, string name = null)
    Parameters
    Type Name Description
    Action<IActorDsl> config

    TBD

    string name

    TBD

    Returns
    Type Description
    IActorRef

    TBD

    | Edit this page View Source

    Become(Action<object, IActorContext>)

    Changes the actor's behavior and replaces the current handler with the specified handler.

    Declaration
    void Become(Action<object, IActorContext> handler)
    Parameters
    Type Name Description
    Action<object, IActorContext> handler

    TBD

    | Edit this page View Source

    BecomeStacked(Action<object, IActorContext>)

    Changes the actor's behavior and replaces the current handler with the specified handler without discarding the current. The current handler is stored on a stack, and you can revert to it by calling UnbecomeStacked() Please note, that in order to not leak memory, make sure every call to BecomeStacked(Action<object, IActorContext>) is matched with a call to UnbecomeStacked().

    Declaration
    void BecomeStacked(Action<object, IActorContext> handler)
    Parameters
    Type Name Description
    Action<object, IActorContext> handler

    TBD

    | Edit this page View Source

    DefaultPostRestart(Exception)

    TBD

    Declaration
    void DefaultPostRestart(Exception reason)
    Parameters
    Type Name Description
    Exception reason

    TBD

    | Edit this page View Source

    DefaultPostStop()

    TBD

    Declaration
    void DefaultPostStop()
    | Edit this page View Source

    DefaultPreRestart(Exception, object)

    TBD

    Declaration
    void DefaultPreRestart(Exception reason, object message)
    Parameters
    Type Name Description
    Exception reason

    TBD

    object message

    TBD

    | Edit this page View Source

    DefaultPreStart()

    TBD

    Declaration
    void DefaultPreStart()
    | Edit this page View Source

    ReceiveAny(Action<object, IActorContext>)

    TBD

    Declaration
    void ReceiveAny(Action<object, IActorContext> handler)
    Parameters
    Type Name Description
    Action<object, IActorContext> handler

    TBD

    | Edit this page View Source

    ReceiveAnyAsync(Func<object, IActorContext, Task>)

    Registers an asynchronous handler for any incoming message that has not already been handled.

    Declaration
    void ReceiveAnyAsync(Func<object, IActorContext, Task> handler)
    Parameters
    Type Name Description
    Func<object, IActorContext, Task> handler

    The message handler that is invoked for all

    | Edit this page View Source

    ReceiveAsync<T>(Func<T, IActorContext, Task>, Predicate<T>)

    Registers an async handler for messages of the specified type T

    Declaration
    void ReceiveAsync<T>(Func<T, IActorContext, Task> handler, Predicate<T> shouldHandle = null)
    Parameters
    Type Name Description
    Func<T, IActorContext, Task> handler

    the message handler invoked on the incoming message

    Predicate<T> shouldHandle

    when not null, determines whether this handler should handle the message

    Type Parameters
    Name Description
    T

    the type of the message

    | Edit this page View Source

    ReceiveAsync<T>(Predicate<T>, Func<T, IActorContext, Task>)

    Registers an async handler for messages of the specified type T

    Declaration
    void ReceiveAsync<T>(Predicate<T> shouldHandle, Func<T, IActorContext, Task> handler)
    Parameters
    Type Name Description
    Predicate<T> shouldHandle

    determines whether this handler should handle the message

    Func<T, IActorContext, Task> handler

    the message handler invoked on the incoming message

    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Receive<T>(Action<T, IActorContext>)

    TBD

    Declaration
    void Receive<T>(Action<T, IActorContext> handler)
    Parameters
    Type Name Description
    Action<T, IActorContext> handler

    TBD

    Type Parameters
    Name Description
    T

    TBD

    | Edit this page View Source

    Receive<T>(Action<T, IActorContext>, Predicate<T>)

    TBD

    Declaration
    void Receive<T>(Action<T, IActorContext> handler, Predicate<T> shouldHandle)
    Parameters
    Type Name Description
    Action<T, IActorContext> handler

    TBD

    Predicate<T> shouldHandle

    TBD

    Type Parameters
    Name Description
    T

    TBD

    | Edit this page View Source

    Receive<T>(Predicate<T>, Action<T, IActorContext>)

    TBD

    Declaration
    void Receive<T>(Predicate<T> shouldHandle, Action<T, IActorContext> handler)
    Parameters
    Type Name Description
    Predicate<T> shouldHandle

    TBD

    Action<T, IActorContext> handler

    TBD

    Type Parameters
    Name Description
    T

    TBD

    | Edit this page View Source

    UnbecomeStacked()

    Changes the actor's behavior and replaces the current handler with the previous one on the behavior stack. In order to store an actor on the behavior stack, a call to BecomeStacked(Action<object, IActorContext>) must have been made prior to this call

    Declaration
    void UnbecomeStacked()

    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