Class TimeMeasure
- Namespace
- Cuemon.Diagnostics
- Assembly
- Cuemon.Diagnostics.dll
Provides a flexible, generic and lambda friendly way to perform time measuring operations.
public static class TimeMeasure
- Inheritance
-
TimeMeasure
Properties
CompletedCallback
Gets or sets the callback that is invoked when a time measuring operation is completed.
public static Action<TimeMeasureProfiler> CompletedCallback { get; set; }
Property Value
- Action<TimeMeasureProfiler>
A Action<T>. The default value is
null
.
Methods
WithAction(Action, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction(Action action, Action<TimeMeasureOptions> setup = null)
Parameters
action
ActionThe delegate to time measure.
setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
WithAction<T>(Action<T>, T, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T>(Action<T> action, T arg, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T>The delegate to time measure.
arg
TThe parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T
The type of the parameter of the
action
delegate.
WithAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.arg7
T7The seventh parameter of the
action
delegate.arg8
T8The eighth parameter of the
action
delegate.arg9
T9The ninth parameter of the
action
delegate .arg10
T10The tenth parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.T7
The type of the seventh parameter of the
action
delegate.T8
The type of the eighth parameter of the
action
delegate.T9
The type of the ninth parameter of the
action
delegate.T10
The type of the tenth parameter of the
action
delegate.
WithAction<T1, T2>(Action<T1, T2>, T1, T2, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2>(Action<T1, T2> action, T1 arg1, T2 arg2, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.
WithAction<T1, T2, T3>(Action<T1, T2, T3>, T1, T2, T3, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2, T3>(Action<T1, T2, T3> action, T1 arg1, T2 arg2, T3 arg3, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2, T3>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.
WithAction<T1, T2, T3, T4>(Action<T1, T2, T3, T4>, T1, T2, T3, T4, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2, T3, T4>(Action<T1, T2, T3, T4> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2, T3, T4>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.
WithAction<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2, T3, T4, T5>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.
WithAction<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2, T3, T4, T5, T6>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.
WithAction<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2, T3, T4, T5, T6, T7>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.arg7
T7The seventh parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.T7
The type of the seventh parameter of the
action
delegate.
WithAction<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2, T3, T4, T5, T6, T7, T8>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.arg7
T7The seventh parameter of the
action
delegate.arg8
T8The eighth parameter of the
action
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.T7
The type of the seventh parameter of the
action
delegate.T8
The type of the eighth parameter of the
action
delegate.
WithAction<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9, Action<TimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static TimeMeasureProfiler WithAction<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, Action<TimeMeasureOptions> setup = null)
Parameters
action
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.arg7
T7The seventh parameter of the
action
delegate.arg8
T8The eighth parameter of the
action
delegate.arg9
T9The ninth parameter of the
action
delegate .setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler
A TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.T7
The type of the seventh parameter of the
action
delegate.T8
The type of the eighth parameter of the
action
delegate.T9
The type of the ninth parameter of the
action
delegate.
WithActionAsync(Func<CancellationToken, Task>, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync(Func<CancellationToken, Task> action, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<CancellationToken, Task>The delegate to time measure.
setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T>(Func<T, CancellationToken, Task>, T, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T>(Func<T, CancellationToken, Task> action, T arg, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T, CancellationToken, Task>The delegate to time measure.
arg
TThe parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T
The type of the parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken, Task>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken, Task> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.arg7
T7The seventh parameter of the
action
delegate.arg8
T8The eighth parameter of the
action
delegate.arg9
T9The ninth parameter of the
action
delegate .arg10
T10The tenth parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.T7
The type of the seventh parameter of the
action
delegate.T8
The type of the eighth parameter of the
action
delegate.T9
The type of the ninth parameter of the
action
delegate.T10
The type of the tenth parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2>(Func<T1, T2, CancellationToken, Task>, T1, T2, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2>(Func<T1, T2, CancellationToken, Task> action, T1 arg1, T2 arg2, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2, T3>(Func<T1, T2, T3, CancellationToken, Task>, T1, T2, T3, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2, T3>(Func<T1, T2, T3, CancellationToken, Task> action, T1 arg1, T2 arg2, T3 arg3, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, T3, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2, T3, T4>(Func<T1, T2, T3, T4, CancellationToken, Task>, T1, T2, T3, T4, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2, T3, T4>(Func<T1, T2, T3, T4, CancellationToken, Task> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, T3, T4, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, CancellationToken, Task>, T1, T2, T3, T4, T5, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, CancellationToken, Task> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, T3, T4, T5, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, CancellationToken, Task>, T1, T2, T3, T4, T5, T6, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, CancellationToken, Task> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, T3, T4, T5, T6, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, CancellationToken, Task>, T1, T2, T3, T4, T5, T6, T7, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, CancellationToken, Task> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, T3, T4, T5, T6, T7, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.arg7
T7The seventh parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.T7
The type of the seventh parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken, Task>, T1, T2, T3, T4, T5, T6, T7, T8, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken, Task> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.arg7
T7The seventh parameter of the
action
delegate.arg8
T8The eighth parameter of the
action
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.T7
The type of the seventh parameter of the
action
delegate.T8
The type of the eighth parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithActionAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken, Task>, T1, T2, T3, T4, T5, T6, T7, T8, T9, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified action
delegate.
public static Task<TimeMeasureProfiler> WithActionAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken, Task> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
action
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken, Task>The delegate to time measure.
arg1
T1The first parameter of the
action
delegate.arg2
T2The second parameter of the
action
delegate.arg3
T3The third parameter of the
action
delegate.arg4
T4The fourth parameter of the
action
delegate.arg5
T5The fifth parameter of the
action
delegate.arg6
T6The sixth parameter of the
action
delegate.arg7
T7The seventh parameter of the
action
delegate.arg8
T8The eighth parameter of the
action
delegate.arg9
T9The ninth parameter of the
action
delegate .setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler with the result of the time measuring.
Type Parameters
T1
The type of the first parameter of the
action
delegate.T2
The type of the second parameter of the
action
delegate.T3
The type of the third parameter of the
action
delegate.T4
The type of the fourth parameter of the
action
delegate.T5
The type of the fifth parameter of the
action
delegate.T6
The type of the sixth parameter of the
action
delegate.T7
The type of the seventh parameter of the
action
delegate.T8
The type of the eighth parameter of the
action
delegate.T9
The type of the ninth parameter of the
action
delegate.
Exceptions
- ArgumentNullException
action
cannot be null.
WithFunc<TResult>(Func<TResult>, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<TResult>(Func<TResult> function, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<TResult>The function delegate to time measure.
setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.arg7
T7The seventh parameter of the
function
delegate.arg8
T8The eighth parameter of the
function
delegate.arg9
T9The ninth parameter of the
function
delegate .setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.T7
The type of the seventh parameter of the
function
delegate.T8
The type of the eighth parameter of the
function
delegate.T9
The type of the ninth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.arg7
T7The seventh parameter of the
function
delegate.arg8
T8The eighth parameter of the
function
delegate.arg9
T9The ninth parameter of the
function
delegate .arg10
T10The tenth parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.T7
The type of the seventh parameter of the
function
delegate.T8
The type of the eighth parameter of the
function
delegate.T9
The type of the ninth parameter of the
function
delegate.T10
The type of the tenth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T, TResult>(Func<T, TResult>, T, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T, TResult>(Func<T, TResult> function, T arg, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T, TResult>The function delegate to time measure.
arg
TThe parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T
The type of the parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, TResult>(Func<T1, T2, TResult>, T1, T2, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, TResult>(Func<T1, T2, TResult> function, T1 arg1, T2 arg2, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>, T1, T2, T3, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult> function, T1 arg1, T2 arg2, T3 arg3, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, T7, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.arg7
T7The seventh parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.T7
The type of the seventh parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFunc<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, Action<TimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static TimeMeasureProfiler<TResult> WithFunc<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, Action<TimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.arg7
T7The seventh parameter of the
function
delegate.arg8
T8The eighth parameter of the
function
delegate.setup
Action<TimeMeasureOptions>The TimeMeasureOptions which may be configured.
Returns
- TimeMeasureProfiler<TResult>
A TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.T7
The type of the seventh parameter of the
function
delegate.T8
The type of the eighth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<TResult>(Func<CancellationToken, Task<TResult>>, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<TResult>(Func<CancellationToken, Task<TResult>> function, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<CancellationToken, Task<TResult>>The function delegate to time measure.
setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken, Task<TResult>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.arg7
T7The seventh parameter of the
function
delegate.arg8
T8The eighth parameter of the
function
delegate.arg9
T9The ninth parameter of the
function
delegate .setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.T7
The type of the seventh parameter of the
function
delegate.T8
The type of the eighth parameter of the
function
delegate.T9
The type of the ninth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken, Task<TResult>>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.arg7
T7The seventh parameter of the
function
delegate.arg8
T8The eighth parameter of the
function
delegate.arg9
T9The ninth parameter of the
function
delegate .arg10
T10The tenth parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.T7
The type of the seventh parameter of the
function
delegate.T8
The type of the eighth parameter of the
function
delegate.T9
The type of the ninth parameter of the
function
delegate.T10
The type of the tenth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T, TResult>(Func<T, CancellationToken, Task<TResult>>, T, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T, TResult>(Func<T, CancellationToken, Task<TResult>> function, T arg, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T, CancellationToken, Task<TResult>>The function delegate to time measure.
arg
TThe parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T
The type of the parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, TResult>(Func<T1, T2, CancellationToken, Task<TResult>>, T1, T2, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, TResult>(Func<T1, T2, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, T3, TResult>(Func<T1, T2, T3, CancellationToken, Task<TResult>>, T1, T2, T3, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, T3, TResult>(Func<T1, T2, T3, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, T3 arg3, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, CancellationToken, Task<TResult>>, T1, T2, T3, T4, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, CancellationToken, Task<TResult>>, T1, T2, T3, T4, T5, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, CancellationToken, Task<TResult>>, T1, T2, T3, T4, T5, T6, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, CancellationToken, Task<TResult>>, T1, T2, T3, T4, T5, T6, T7, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, T7, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.arg7
T7The seventh parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.T7
The type of the seventh parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.
WithFuncAsync<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken, Task<TResult>>, T1, T2, T3, T4, T5, T6, T7, T8, Action<AsyncTimeMeasureOptions>)
Profile and time measure the specified function
delegate.
public static Task<TimeMeasureProfiler<TResult>> WithFuncAsync<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken, Task<TResult>> function, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, Action<AsyncTimeMeasureOptions> setup = null)
Parameters
function
Func<T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1
T1The first parameter of the
function
delegate.arg2
T2The second parameter of the
function
delegate.arg3
T3The third parameter of the
function
delegate.arg4
T4The fourth parameter of the
function
delegate.arg5
T5The fifth parameter of the
function
delegate.arg6
T6The sixth parameter of the
function
delegate.arg7
T7The seventh parameter of the
function
delegate.arg8
T8The eighth parameter of the
function
delegate.setup
Action<AsyncTimeMeasureOptions>The AsyncTimeMeasureOptions which may be configured.
Returns
- Task<TimeMeasureProfiler<TResult>>
A task that represents the asynchronous operation. The task result contains a TimeMeasureProfiler<TResult> with the result of the time measuring and the encapsulated
function
delegate.
Type Parameters
T1
The type of the first parameter of the
function
delegate.T2
The type of the second parameter of the
function
delegate.T3
The type of the third parameter of the
function
delegate.T4
The type of the fourth parameter of the
function
delegate.T5
The type of the fifth parameter of the
function
delegate.T6
The type of the sixth parameter of the
function
delegate.T7
The type of the seventh parameter of the
function
delegate.T8
The type of the eighth parameter of the
function
delegate.TResult
The type of the return value of the
function
delegate.