Interface IActorDsl
Assembly: Akka.dll
Syntax
public interface IActorDsl
Properties
|
Edit this page
View Source
OnPostRestart
Declaration
Action<Exception, IActorContext>? OnPostRestart { get; set; }
Property Value
|
Edit this page
View Source
OnPostStop
Declaration
Action<IActorContext>? OnPostStop { get; set; }
Property Value
|
Edit this page
View Source
OnPreRestart
Declaration
Action<Exception, object, IActorContext>? OnPreRestart { get; set; }
Property Value
|
Edit this page
View Source
OnPreStart
Declaration
Action<IActorContext>? OnPreStart { get; set; }
Property Value
|
Edit this page
View Source
Strategy
Declaration
SupervisorStrategy? Strategy { get; set; }
Property Value
Methods
|
Edit this page
View Source
ActorOf(Action<IActorDsl>, string?)
Declaration
IActorRef ActorOf(Action<IActorDsl> config, string? name = null)
Parameters
Returns
|
Edit this page
View Source
Become(Action<object, IActorContext>)
Changes the actor's behavior and replaces the current handler with the specified handler.
Declaration
void Become(Action<object, IActorContext> handler)
Parameters
|
Edit this page
View Source
BecomeStacked(Action<object, IActorContext>)
Declaration
void BecomeStacked(Action<object, IActorContext> handler)
Parameters
|
Edit this page
View Source
DefaultPostRestart(Exception)
Declaration
void DefaultPostRestart(Exception reason)
Parameters
|
Edit this page
View Source
DefaultPostStop()
Declaration
|
Edit this page
View Source
DefaultPreRestart(Exception, object)
Declaration
void DefaultPreRestart(Exception reason, object message)
Parameters
|
Edit this page
View Source
DefaultPreStart()
Declaration
|
Edit this page
View Source
ReceiveAny(Action<object, IActorContext>)
Declaration
void ReceiveAny(Action<object, IActorContext> handler)
Parameters
|
Edit this page
View Source
ReceiveAnyAsync(Func<object, IActorContext, Task>)
Registers an asynchronous handler for any incoming message that has not already been handled.
Declaration
void ReceiveAnyAsync(Func<object, IActorContext, Task> handler)
Parameters
|
Edit this page
View Source
ReceiveAsync<T>(Func<T, IActorContext, Task>, Predicate<T>?)
Registers an async handler for messages of the specified type T
Declaration
void ReceiveAsync<T>(Func<T, IActorContext, Task> handler, Predicate<T>? shouldHandle = null)
Parameters
| Type |
Name |
Description |
| Func<T, IActorContext, Task> |
handler |
the message handler invoked on the incoming message
|
| Predicate<T> |
shouldHandle |
when not null, determines whether this handler should handle the message
|
Type Parameters
| Name |
Description |
| T |
the type of the message
|
|
Edit this page
View Source
ReceiveAsync<T>(Predicate<T>, Func<T, IActorContext, Task>)
Registers an async handler for messages of the specified type T
Declaration
void ReceiveAsync<T>(Predicate<T> shouldHandle, Func<T, IActorContext, Task> handler)
Parameters
| Type |
Name |
Description |
| Predicate<T> |
shouldHandle |
determines whether this handler should handle the message
|
| Func<T, IActorContext, Task> |
handler |
the message handler invoked on the incoming message
|
Type Parameters
|
Edit this page
View Source
Receive<T>(Action<T, IActorContext>)
Declaration
void Receive<T>(Action<T, IActorContext> handler)
Parameters
Type Parameters
|
Edit this page
View Source
Receive<T>(Action<T, IActorContext>, Predicate<T>)
Declaration
void Receive<T>(Action<T, IActorContext> handler, Predicate<T> shouldHandle)
Parameters
Type Parameters
|
Edit this page
View Source
Receive<T>(Predicate<T>, Action<T, IActorContext>)
Declaration
void Receive<T>(Predicate<T> shouldHandle, Action<T, IActorContext> handler)
Parameters
Type Parameters
|
Edit this page
View Source
UnbecomeStacked()
Changes the actor's behavior and replaces the current handler with the previous one on the behavior stack.
In order to store an actor on the behavior stack, a call to BecomeStacked(Action<object, IActorContext>) must have been made
prior to this call
Declaration
Extension Methods