TaskResult Property |
Namespace: AGI.Parallel.Infrastructure
[Serializable] public class SimpleTask : Task { public override void Execute() { this.Result = new MyTaskResult(Environment.MachineName); } } // The result object must be serializable [Serializable] public class MyTaskResult { public DateTime Time; public string MachineName; public int TickCount; public MyTaskResult(string machineName) { Time = DateTime.Now; MachineName = machineName; TickCount = Environment.TickCount; } }
STK Parallel Computing Server 2.9 API for .NET