Click or drag to resize
Akka.NETInternalTestActorRef Class
INTERNAL 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.
Remarks
Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Inheritance Hierarchy

Namespace:  Akka.TestKit.Internal
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public class InternalTestActorRef : LocalActorRef

The InternalTestActorRef type exposes the following members.

Properties
  NameDescription
Public propertyCell
TBD
(Inherited from LocalActorRef.)
Public propertyChildren
TBD
(Inherited from LocalActorRef.)
Protected propertyDispatcher
TBD
(Inherited from LocalActorRef.)
Public propertyIsLocal
TBD
(Inherited from LocalActorRef.)
Public propertyIsTerminated
TBD
(Inherited from LocalActorRef.)
Protected propertyMailboxType
TBD
(Inherited from LocalActorRef.)
Public propertyParent
TBD
(Inherited from LocalActorRef.)
Public propertyPath
TBD
(Inherited from LocalActorRef.)
Protected propertyProps
TBD
(Inherited from LocalActorRef.)
Public propertyProvider
TBD
(Inherited from LocalActorRef.)
Protected propertySupervisor
TBD
(Inherited from LocalActorRef.)
Protected propertySystem
TBD
(Inherited from LocalActorRef.)
Public propertyUnderlying
TBD
(Inherited from LocalActorRef.)
Public propertyUnderlyingActor
TBD
Top
Methods
  NameDescription
Public methodCompareTo(Object)
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 ActorRefBase.)
Public methodCompareTo(IActorRef)
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 ActorRefBase.)
Public methodStatic memberCreate
INTERNAL
Remarks
Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Public methodStatic memberCreateUniqueName
INTERNAL
Remarks
Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from ActorRefBase.)
Public methodEquals(IActorRef)
Indicates whether the current object is equal to another object of the same type.
(Inherited from ActorRefBase.)
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 methodGetChild
TBD
(Inherited from LocalActorRef.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from ActorRefBase.)
Public methodGetSingleChild
TBD
(Inherited from LocalActorRef.)
Protected methodGetTestActorCell
TBD
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.)
Protected methodNewActorCell
TBD
(Overrides LocalActorRefNewActorCell(ActorSystemImpl, IInternalActorRef, Props, MessageDispatcher, IInternalActorRef).)
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.
Public methodRestart
TBD
(Inherited from LocalActorRef.)
Public methodResume
TBD
(Inherited from LocalActorRef.)
Public methodSendSystemMessage(ISystemMessage)
TBD
(Inherited from LocalActorRef.)
Public methodSendSystemMessage(ISystemMessage, IActorRef) Obsolete.
INTERNAL API. Used by built-in IActorRef implementations for handling internal operations that are not exposed directly to end-users.
(Inherited from InternalActorRefBase.)
Public methodStart
TBD
(Inherited from LocalActorRef.)
Public methodStop
TBD
(Inherited from LocalActorRef.)
Public methodSuspend
TBD
(Inherited from LocalActorRef.)
Public methodTell
TBD
(Inherited from ActorRefBase.)
Protected methodTellInternal
TBD
(Inherited from LocalActorRef.)
Public methodToString
TBD
(Overrides ActorRefBaseToString.)
Public methodToSurrogate
Creates a surrogate representation of the current ActorRefBase.
(Inherited from ActorRefBase.)
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.
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.
Top
Extension Methods
See Also