Search Results for

    Show / Hide Table of Contents

    Interface ICanWatch

    TBD

    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public interface ICanWatch

    Methods

    | Edit this page View Source

    Unwatch(IActorRef)

    Stops monitoring the subject for termination.

    Declaration
    IActorRef Unwatch(IActorRef subject)
    Parameters
    Type Name Description
    IActorRef subject

    The actor to stop monitor for termination.

    Returns
    Type Description
    IActorRef

    Returns the provided subject

    | Edit this page View Source

    Watch(IActorRef)

    Monitors the specified actor for termination. When the subject terminates the instance watching will receive a Terminated message. Note that if the Terminated message isn't handled by the actor, by default the actor will crash by throwing a DeathPactException. To change the default behavior, override Unhandled(object).

    Declaration
    IActorRef Watch(IActorRef subject)
    Parameters
    Type Name Description
    IActorRef subject

    The actor to monitor for termination.

    Returns
    Type Description
    IActorRef

    Returns the provided subject

    | Edit this page View Source

    WatchWith(IActorRef, object)

    Monitors the specified actor for termination. When the subject terminates the instance watching will receive the provided message.

    Declaration
    IActorRef WatchWith(IActorRef subject, object message)
    Parameters
    Type Name Description
    IActorRef subject

    The actor to monitor for termination.

    object message

    The custom termination message

    Returns
    Type Description
    IActorRef

    Returns the provided subject

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET