modules/platforms/dotnet/Apache.Ignite.Core/Impl/Compute/ComputeImpl.cs
/// <summary>
/// Executes given task on the grid projection. For step-by-step explanation of task execution process
/// refer to <see cref="IComputeTask{A,T,R}"/> documentation.
/// </summary>
/// <param name="taskType">Task type.</param>
/// <param name="taskArg">Optional task argument.</param>
/// <returns>Task result.</returns>
Executes given task on the grid projection. For step-by-step explanation of task execution process
refer to  documentation.
Executes given task on the grid projection . For step - by - step explanation of task execution process refer to documentation .
public Future<TReduceRes> Execute<TArg, TJobRes, TReduceRes>(Type taskType, TArg taskArg)
        {
            IgniteArgumentCheck.NotNull(taskType, "taskType");
            object task = FormatterServices.GetUninitializedObject(taskType);
            var task0 = task as IComputeTask<TArg, TJobRes, TReduceRes>;
            if (task0 == null)
                throw new IgniteException("Task type doesn't implement IComputeTask: " + taskType.Name);
            return Execute(task0, taskArg);
        }
public Future < TReduceRes > Execute < TArg , TJobRes , TReduceRes > ( Type taskType , TArg taskArg ) { IgniteArgumentCheck . NotNull ( taskType , " " ) ; object task = FormatterServices . GetUninitializedObject ( taskType ) ; var task0 = task as IComputeTask < TArg , TJobRes , TReduceRes > ; if ( task0 == null ) throw new IgniteException ( " " + taskType . Name ) ; return Execute ( task0 , taskArg ) ; }
Executes given task on the grid projection.
Executes given task on the grid projection .
None
taskType
Type
None
taskArg
TArg
Optional task argument.
Optional task argument .