Class Act
TBD
Inherited Members
Namespace: Akka.Actor.Dsl
Assembly: Akka.dll
Syntax
public sealed class Act : ReceiveActor, IInternalActor, IInitializableActor, IActorDsl
Constructors
| Improve this Doc View SourceAct(Action<IActorDsl, IActorContext>)
TBD
Declaration
public Act(Action<IActorDsl, IActorContext> config)
Parameters
Type | Name | Description |
---|---|---|
Action<IActorDsl, IActorContext> | config | TBD |
Act(Action<IActorDsl>)
TBD
Declaration
public Act(Action<IActorDsl> config)
Parameters
Type | Name | Description |
---|---|---|
Action<IActorDsl> | config | TBD |
Properties
| Improve this Doc View SourceOnPostRestart
TBD
Declaration
public Action<Exception, IActorContext> OnPostRestart { get; set; }
Property Value
Type | Description |
---|---|
Action<Exception, IActorContext> |
OnPostStop
TBD
Declaration
public Action<IActorContext> OnPostStop { get; set; }
Property Value
Type | Description |
---|---|
Action<IActorContext> |
OnPreRestart
TBD
Declaration
public Action<Exception, object, IActorContext> OnPreRestart { get; set; }
Property Value
Type | Description |
---|---|
Action<Exception, Object, IActorContext> |
OnPreStart
TBD
Declaration
public Action<IActorContext> OnPreStart { get; set; }
Property Value
Type | Description |
---|---|
Action<IActorContext> |
Strategy
TBD
Declaration
public SupervisorStrategy Strategy { get; set; }
Property Value
Type | Description |
---|---|
SupervisorStrategy |
Methods
| Improve this Doc View SourceActorOf(Action<IActorDsl>, String)
TBD
Declaration
public IActorRef ActorOf(Action<IActorDsl> config, string name = null)
Parameters
Type | Name | Description |
---|---|---|
Action<IActorDsl> | config | TBD |
String | name | TBD |
Returns
Type | Description |
---|---|
IActorRef | TBD |
Become(Action<Object, IActorContext>)
TBD
Declaration
public void Become(Action<object, IActorContext> handler)
Parameters
Type | Name | Description |
---|---|---|
Action<Object, IActorContext> | handler | TBD |
BecomeStacked(Action<Object, IActorContext>)
TBD
Declaration
public void BecomeStacked(Action<object, IActorContext> handler)
Parameters
Type | Name | Description |
---|---|---|
Action<Object, IActorContext> | handler | TBD |
DefaultPostRestart(Exception)
TBD
Declaration
public void DefaultPostRestart(Exception reason)
Parameters
Type | Name | Description |
---|---|---|
Exception | reason | TBD |
DefaultPostStop()
TBD
Declaration
public void DefaultPostStop()
DefaultPreRestart(Exception, Object)
TBD
Declaration
public void DefaultPreRestart(Exception reason, object message)
Parameters
Type | Name | Description |
---|---|---|
Exception | reason | TBD |
Object | message | TBD |
DefaultPreStart()
TBD
Declaration
public void DefaultPreStart()
PostRestart(Exception)
TBD
Declaration
protected override void PostRestart(Exception reason)
Parameters
Type | Name | Description |
---|---|---|
Exception | reason | TBD |
Overrides
| Improve this Doc View SourcePostStop()
TBD
Declaration
protected override void PostStop()
Overrides
| Improve this Doc View SourcePreRestart(Exception, Object)
TBD
Declaration
protected override void PreRestart(Exception reason, object message)
Parameters
Type | Name | Description |
---|---|---|
Exception | reason | TBD |
Object | message | TBD |
Overrides
| Improve this Doc View SourcePreStart()
TBD
Declaration
protected override void PreStart()
Overrides
| Improve this Doc View SourceReceive<T>(Action<T, IActorContext>)
TBD
Declaration
public void Receive<T>(Action<T, IActorContext> handler)
Parameters
Type | Name | Description |
---|---|---|
Action<T, IActorContext> | handler | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Receive<T>(Action<T, IActorContext>, Predicate<T>)
TBD
Declaration
public void Receive<T>(Action<T, IActorContext> handler, Predicate<T> shouldHandle)
Parameters
Type | Name | Description |
---|---|---|
Action<T, IActorContext> | handler | TBD |
Predicate<T> | shouldHandle | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Receive<T>(Predicate<T>, Action<T, IActorContext>)
TBD
Declaration
public void Receive<T>(Predicate<T> shouldHandle, Action<T, IActorContext> handler)
Parameters
Type | Name | Description |
---|---|---|
Predicate<T> | shouldHandle | TBD |
Action<T, IActorContext> | handler | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
ReceiveAny(Action<Object, IActorContext>)
TBD
Declaration
public void ReceiveAny(Action<object, IActorContext> handler)
Parameters
Type | Name | Description |
---|---|---|
Action<Object, IActorContext> | handler | TBD |
ReceiveAnyAsync(Func<Object, IActorContext, Task>)
Registers an asynchronous handler for any incoming message that has not already been handled.
Declaration
public void ReceiveAnyAsync(Func<object, IActorContext, Task> handler)
Parameters
Type | Name | Description |
---|---|---|
Func<Object, IActorContext, Task> | handler | The message handler that is invoked for all |
ReceiveAsync<T>(Func<T, IActorContext, Task>, Predicate<T>)
Registers an async handler for messages of the specified type T
Declaration
public 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 |
ReceiveAsync<T>(Predicate<T>, Func<T, IActorContext, Task>)
Registers an async handler for messages of the specified type T
Declaration
public 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
Name | Description |
---|---|
T |
SupervisorStrategy()
TBD
Declaration
protected override SupervisorStrategy SupervisorStrategy()
Returns
Type | Description |
---|---|
SupervisorStrategy | TBD |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIActorDsl.UnbecomeStacked()
Declaration
void IActorDsl.UnbecomeStacked()