WithFuncAsync Method
Definition
- Namespace
- Cuemon.Diagnostics
- Assemblies
- Cuemon.Diagnostics.dll
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
functionFunc<CancellationToken, Task<TResult>>The function delegate to time measure.
setupAction<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
functiondelegate.
Type Parameters
TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T, CancellationToken, Task<TResult>>The function delegate to time measure.
argTThe parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
TThe type of the parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, T3, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.arg3T3The third parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.T3The type of the third parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, T3, T4, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.arg3T3The third parameter of the
functiondelegate.arg4T4The fourth parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.T3The type of the third parameter of the
functiondelegate.T4The type of the fourth parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, T3, T4, T5, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.arg3T3The third parameter of the
functiondelegate.arg4T4The fourth parameter of the
functiondelegate.arg5T5The fifth parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.T3The type of the third parameter of the
functiondelegate.T4The type of the fourth parameter of the
functiondelegate.T5The type of the fifth parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, T3, T4, T5, T6, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.arg3T3The third parameter of the
functiondelegate.arg4T4The fourth parameter of the
functiondelegate.arg5T5The fifth parameter of the
functiondelegate.arg6T6The sixth parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.T3The type of the third parameter of the
functiondelegate.T4The type of the fourth parameter of the
functiondelegate.T5The type of the fifth parameter of the
functiondelegate.T6The type of the sixth parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, T3, T4, T5, T6, T7, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.arg3T3The third parameter of the
functiondelegate.arg4T4The fourth parameter of the
functiondelegate.arg5T5The fifth parameter of the
functiondelegate.arg6T6The sixth parameter of the
functiondelegate.arg7T7The seventh parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.T3The type of the third parameter of the
functiondelegate.T4The type of the fourth parameter of the
functiondelegate.T5The type of the fifth parameter of the
functiondelegate.T6The type of the sixth parameter of the
functiondelegate.T7The type of the seventh parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, T3, T4, T5, T6, T7, T8, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.arg3T3The third parameter of the
functiondelegate.arg4T4The fourth parameter of the
functiondelegate.arg5T5The fifth parameter of the
functiondelegate.arg6T6The sixth parameter of the
functiondelegate.arg7T7The seventh parameter of the
functiondelegate.arg8T8The eighth parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.T3The type of the third parameter of the
functiondelegate.T4The type of the fourth parameter of the
functiondelegate.T5The type of the fifth parameter of the
functiondelegate.T6The type of the sixth parameter of the
functiondelegate.T7The type of the seventh parameter of the
functiondelegate.T8The type of the eighth parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.arg3T3The third parameter of the
functiondelegate.arg4T4The fourth parameter of the
functiondelegate.arg5T5The fifth parameter of the
functiondelegate.arg6T6The sixth parameter of the
functiondelegate.arg7T7The seventh parameter of the
functiondelegate.arg8T8The eighth parameter of the
functiondelegate.arg9T9The ninth parameter of the
functiondelegate .setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.T3The type of the third parameter of the
functiondelegate.T4The type of the fourth parameter of the
functiondelegate.T5The type of the fifth parameter of the
functiondelegate.T6The type of the sixth parameter of the
functiondelegate.T7The type of the seventh parameter of the
functiondelegate.T8The type of the eighth parameter of the
functiondelegate.T9The type of the ninth parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.
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
functionFunc<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, CancellationToken, Task<TResult>>The function delegate to time measure.
arg1T1The first parameter of the
functiondelegate.arg2T2The second parameter of the
functiondelegate.arg3T3The third parameter of the
functiondelegate.arg4T4The fourth parameter of the
functiondelegate.arg5T5The fifth parameter of the
functiondelegate.arg6T6The sixth parameter of the
functiondelegate.arg7T7The seventh parameter of the
functiondelegate.arg8T8The eighth parameter of the
functiondelegate.arg9T9The ninth parameter of the
functiondelegate .arg10T10The tenth parameter of the
functiondelegate.setupAction<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
functiondelegate.
Type Parameters
T1The type of the first parameter of the
functiondelegate.T2The type of the second parameter of the
functiondelegate.T3The type of the third parameter of the
functiondelegate.T4The type of the fourth parameter of the
functiondelegate.T5The type of the fifth parameter of the
functiondelegate.T6The type of the sixth parameter of the
functiondelegate.T7The type of the seventh parameter of the
functiondelegate.T8The type of the eighth parameter of the
functiondelegate.T9The type of the ninth parameter of the
functiondelegate.T10The type of the tenth parameter of the
functiondelegate.TResultThe type of the return value of the
functiondelegate.