TestActorRef<(Of <(<'T>)>)> 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.

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll)

Syntax


public class TestActorRef<T> : LocalActorRef
where T : ActorBase
Public Class TestActorRef(Of T As ActorBase) _
	Inherits LocalActorRef
generic<typename T>
where T : ActorBase
public ref class TestActorRef : public LocalActorRef

Type Parameters

T
The type of actor

Inheritance Hierarchy


Object
  Akka.Actor..::..ActorRef
    Akka.Actor..::..InternalActorRef
      Akka.Actor..::..ActorRefWithCell
        Akka.Actor..::..LocalActorRef
          Akka.TestKit..::..TestActorRef<(Of <(<'T>)>)>