Search Results for

    Show / Hide Table of Contents

    Class EchoActor

    An EchoActor is an actor that echoes whatever is sent to it, to the TestKit's TestActor. By default it also echoes back to the sender, unless the sender is the TestActor (in this case the TestActor will only receive one message).

    Inheritance
    object
    ActorBase
    UntypedActor
    ReceiveActor
    EchoActor
    Implements
    IInternalActor
    IInitializableActor
    Inherited Members
    ReceiveActor.OnReceive(object)
    ReceiveActor.Become(Action)
    ReceiveActor.BecomeStacked(Action)
    ReceiveActor.ReceiveAsync<T>(Func<T, Task>, Predicate<T>)
    ReceiveActor.ReceiveAsync<T>(Predicate<T>, Func<T, Task>)
    ReceiveActor.ReceiveAsync(Type, Func<object, Task>, Predicate<object>)
    ReceiveActor.ReceiveAsync(Type, Predicate<object>, Func<object, Task>)
    ReceiveActor.ReceiveAnyAsync(Func<object, Task>)
    ReceiveActor.Receive<T>(Action<T>, Predicate<T>)
    ReceiveActor.Receive<T>(Predicate<T>, Action<T>)
    ReceiveActor.Receive(Type, Action<object>, Predicate<object>)
    ReceiveActor.Receive(Type, Predicate<object>, Action<object>)
    ReceiveActor.Receive<T>(Func<T, bool>)
    ReceiveActor.Receive(Type, Func<object, bool>)
    ReceiveActor.ReceiveAny(Action<object>)
    UntypedActor.Receive(object)
    UntypedActor.RunTask(Action)
    UntypedActor.RunTask(Func<Task>)
    UntypedActor.Become(UntypedReceive)
    UntypedActor.BecomeStacked(UntypedReceive)
    UntypedActor.Context
    ActorBase.Sender
    ActorBase.Self
    ActorBase.AroundReceive(Receive, object)
    ActorBase.EmptyReceive
    ActorBase.Unhandled(object)
    ActorBase.Become(Receive)
    ActorBase.BecomeStacked(Receive)
    ActorBase.UnbecomeStacked()
    ActorBase.SetReceiveTimeout(TimeSpan?)
    ActorBase.AroundPreRestart(Exception, object)
    ActorBase.AroundPreStart()
    ActorBase.PreStart()
    ActorBase.AroundPostRestart(Exception, object)
    ActorBase.PreRestart(Exception, object)
    ActorBase.PostRestart(Exception)
    ActorBase.AroundPostStop()
    ActorBase.PostStop()
    ActorBase.SupervisorStrategy()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.TestKit.TestActors
    Assembly: Akka.TestKit.dll
    Syntax
    public class EchoActor : ReceiveActor, IInternalActor, IInitializableActor

    Constructors

    | Edit this page View Source

    EchoActor(TestKitBase, bool)

    TBD

    Declaration
    public EchoActor(TestKitBase testkit, bool echoBackToSenderAsWell = true)
    Parameters
    Type Name Description
    TestKitBase testkit

    TBD

    bool echoBackToSenderAsWell

    TBD

    Methods

    | Edit this page View Source

    Props(TestKitBase, bool)

    Returns a Props(TestKitBase, bool) object that can be used to create an EchoActor. The EchoActor echoes whatever is sent to it, to the TestKit's TestActor. By default it also echoes back to the sender, unless the sender is the TestActor (in this case the TestActor will only receive one message) or unless echoBackToSenderAsWell has been set to false.

    Declaration
    public static Props Props(TestKitBase testkit, bool echoBackToSenderAsWell = true)
    Parameters
    Type Name Description
    TestKitBase testkit

    TBD

    bool echoBackToSenderAsWell

    TBD

    Returns
    Type Description
    Props

    TBD

    Implements

    IInternalActor
    IInitializableActor

    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