Click or drag to resize
Akka.NETCoordinatedShutdownAddTask Method
Add a task to a phase. It doesn't remove previously added tasks. Tasks added to the same phase are executed in parallel without any ordering assumptions. Next phase will not start until all tasks of previous phase have completed.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public void AddTask(
	string phase,
	string taskName,
	Func<Task<Done>> task
)

Parameters

phase
Type: SystemString
The phase to add this task to.
taskName
Type: SystemString
The name of the task to add to this phase.
task
Type: SystemFuncTaskDone
The delegate that produces a Task that will be executed.
Remarks
Tasks should typically be registered as early as possible after system startup. When running the CoordinatedShutdown tasks that have been registered will be performed but tasks that are added too late will not be run. It is possible to add a task to a later phase from within a task in an earlier phase and it will be performed.
See Also