Class ActorRefExtensions
This class contains extension methods used for working with ActorRefs.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public static class ActorRefExtensions
Methods
| Improve this Doc View SourceGetOrElse(IActorRef, Func<IActorRef>)
Returns the actorRef
's value if it's not null, Nobody,
or DeadLetterActorRef. Otherwise return the result of evaluating elseValue
.
Declaration
public static IActorRef GetOrElse(this IActorRef actorRef, Func<IActorRef> elseValue)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actorRef | The actor that is being tested. |
Func<IActorRef> | elseValue | TBD |
Returns
Type | Description |
---|---|
IActorRef |
IsNobody(IActorRef)
Determines if the specified actorRef
is invalid.
An actorRef
is thought to be invalid if it's one of the following:
null, Nobody, and DeadLetterActorRef
Declaration
public static bool IsNobody(this IActorRef actorRef)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actorRef | The actor that is being tested. |
Returns
Type | Description |
---|---|
Boolean |
|