User Task
Users can create custom complete tasks extending the HPE.Ianus.Task abstract class.
The class must therefore implement the constructor and method Run, to performed the desired actions and return the desired status for the task.
To implement a custom task, it is required good knowledge of Ianus internals.
Example
[TaskCommand("mytask")]
public class MyCustomTask : HPE.Ianus.Task
{
public MyCustomTask(Job j, long id, string name, XElement c) : base(j, id, name, c)
{
}
public override void Run()
{
RunReady($"Starting My Task");
Log.Info("Hello world");
DoMyWork();
RunCompleted("Task done");
}
}