Click or drag to resize

ThreadedCalculation.BodyCallback<TParameter> Delegate

A delegate representing the body of a multithreaded 'for' loop. The execution of the callback will see a ThreadingPolicy with only one thread unless it is explicitly set inside the callback.

Namespace:  AGI.Foundation.Infrastructure.Threading
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public delegate void BodyCallback<TParameter>(
	TParameter parameter,
	int i
)

Parameters

parameter
Type: TParameter
A parameter that is passed to the body of the loop. If this instance implements IThreadAware and IsThreadSafe returns false, a copy of the parameter is made for each thread using CopyForAnotherThread.
i
Type: System.Int32
The index to evaluate.

Type Parameters

TParameter
The type of an instance that is passed to the body of the loop.
See Also