Example #1
0
 public Task <TaskResult> Execute(ConductorTask task)
 {
     Console.WriteLine("Doing some work");
     return(Task.FromResult(task.Completed()));
     //return Task.FromResult(task.Completed(new Dictionary<string, object>() { })); // with ouputdata
     //return Task.FromResult(task.Failed("error message ")); //error
     //return Task.FromResult(task.FailedWithTerminalError("error message")); // terminal failure
 }
Example #2
0
 public Task <TaskResult> Execute(ConductorTask task)
 {
     using var _ = task.LogScope();
     Log.Information("Doing some work");
     return(Task.FromResult(task.Completed()));
 }
Example #3
0
 public Task <TaskResult> Execute(ConductorTask task)
 {
     Console.WriteLine("Doing some work");
     return(Task.FromResult(task.Completed()));
 }