TestActorRef<(Of <(<'T>)>)>..::..Watch Method

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.

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

Syntax


public void Watch(
	ActorRef subject
)
Public Sub Watch ( _
	subject As ActorRef _
)
public:
void Watch(
	ActorRef^ subject
)

Parameters

subject
Type: Akka.Actor..::..ActorRef
The subject to watch.

Return Value

Returns the same ActorRef that is provided to it, to allow for cleaner invocations.