Click or drag to resize
Akka.NETTestActorRefTActor Class
This special ActorRef is exclusively for use during unit testing in a single-threaded environment. Therefore, it overrides the dispatcher to CallingThreadDispatcher and sets the receiveTimeout to None. Otherwise, it acts just like a normal ActorRef. You may retrieve a reference to the underlying actor to test internal logic. A TestActorRefTActor can be implicitly casted to an IActorRef or you can get the actual IActorRef from the Ref property.
Inheritance Hierarchy
SystemObject
  Akka.TestKitTestActorRefBaseTActor
    Akka.TestKitTestActorRefTActor

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public class TestActorRef<TActor> : TestActorRefBase<TActor>
where TActor : ActorBase

Type Parameters

TActor
The type of actor

The TestActorRefTActor type exposes the following members.

Constructors
  NameDescription
Public methodTestActorRefTActor
Initializes a new instance of the TestActorRefTActor class.
Top
Properties
Methods
  NameDescription
Public methodCompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from TestActorRefBaseTActor.)
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from TestActorRefBaseTActor.)
Public methodEquals(IActorRef) (Inherited from TestActorRefBaseTActor.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodForward
Forwards a message to this actor. If this call is made from within an actor, the current actor will be the sender. If the call is made from a test class that is based on TestKit, TestActor will will be the sender;
(Inherited from TestActorRefBaseTActor.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from TestActorRefBaseTActor.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReceive
Directly inject messages into actor receive behavior. Any exceptions thrown will be available to you, while still being able to use become/unbecome.
(Inherited from TestActorRefBaseTActor.)
Public methodSendSystemMessage(ISystemMessage)
TBD
(Inherited from TestActorRefBaseTActor.)
Public methodSendSystemMessage(ISystemMessage, IActorRef)
TBD
(Inherited from TestActorRefBaseTActor.)
Public methodTell(Object)
Sends a message to this actor. If this call is made from within an actor, the current actor will be the sender. If the call is made from a test class that is based on TestKit, TestActor will will be the sender; otherwise NoSender will be set as sender.
(Inherited from TestActorRefBaseTActor.)
Public methodTell(Object, IActorRef)
Sends a message to this actor with the specified sender.
(Inherited from TestActorRefBaseTActor.)
Public methodToString
Returns a string that represents the current object.
(Inherited from TestActorRefBaseTActor.)
Public methodUnwatch
Deregisters this actor from being a death monitor of the provided ActorRef This means that this actor will not get a Terminated()-message when the provided actor is permanently terminated. Returns the same ActorRef that is provided to it, to allow for cleaner invocations.
(Inherited from TestActorRefBaseTActor.)
Public methodWatch
Registers this actor to be a death monitor of the provided ActorRef This means that this actor will get a Terminated()-message when the provided actor is permanently terminated. Returns the same ActorRef that is provided to it, to allow for cleaner invocations.
(Inherited from TestActorRefBaseTActor.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality(IActorRef, TestActorRefTActor)
Compares a specified IActorRef to an TestActorRefTActor for equality.
Public operatorStatic memberEquality(TestActorRefTActor, IActorRef)
Compares a specified TestActorRefTActor to an IActorRef for equality.
Public operatorStatic memberInequality(IActorRef, TestActorRefTActor)
Compares a specified IActorRef to an TestActorRefTActor for inequality.
Public operatorStatic memberInequality(TestActorRefTActor, IActorRef)
Compares a specified TestActorRefTActor to an IActorRef for inequality.
Top
Extension Methods
See Also