Click or drag to resize
Akka.NETActorBasePreRestart Method
User overridable callback: '''By default it disposes of all children and then calls `postStop()`.'''

Is called on a crashed Actor right BEFORE it is restarted to allow clean up of resources before Actor is terminated.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
protected virtual void PreRestart(
	Exception reason,
	Object message
)

Parameters

reason
Type: SystemException
the Exception that caused the restart to happen.
message
Type: SystemObject
optionally the current message the actor processed when failing, if applicable.
See Also