diff --git a/src/core/Akka/Actor/IActorContext.cs b/src/core/Akka/Actor/IActorContext.cs index 5fe36b7fa61..056cd192e4f 100644 --- a/src/core/Akka/Actor/IActorContext.cs +++ b/src/core/Akka/Actor/IActorContext.cs @@ -5,7 +5,23 @@ namespace Akka.Actor { public interface ICanWatch { + /// + /// Monitors the specified actor for termination. When the terminates + /// the instance watching will receive a message. + /// Note that if the message isn't handled by the actor, + /// by default the actor will crash by throwing a . To change + /// the default behavior, override . + /// + /// + /// The actor to monitor for termination. + /// Returns the provided subject ActorRef Watch(ActorRef subject); + + /// + /// Stops monitoring the for termination. + /// + /// The actor to stop monitor for termination. + /// Returns the provided subject ActorRef Unwatch(ActorRef subject); }