CommandExecuteWithCancelAsyncTOperation, TContext - метод
Пространство имён: Tessa.Extensions.Default.Console.TextRecognition.BaseСборка: Tessa.Extensions.Default.Console (в Tessa.Extensions.Default.Console.dll) Версия: 4.0.4
protected static Task<int> ExecuteWithCancelAsync<TOperation, TContext>(
Func<CancellationToken, ValueTask<IUnityContainer>> containerInitializationAction,
Func<TOperation, CancellationToken, Task<int>> operationExecutionActionAsync
)
where TOperation : ConsoleOperation<TContext>
where TContext : OperationContext
Protected Shared Function ExecuteWithCancelAsync(Of TOperation As ConsoleOperation(Of TContext), TContext As OperationContext) (
containerInitializationAction As Func(Of CancellationToken, ValueTask(Of IUnityContainer)),
operationExecutionActionAsync As Func(Of TOperation, CancellationToken, Task(Of Integer))
) As Task(Of Integer)
protected:
generic<typename TOperation, typename TContext>
where TOperation : ConsoleOperation<TContext>
where TContext : OperationContext
static Task<int>^ ExecuteWithCancelAsync(
Func<CancellationToken, ValueTask<IUnityContainer^>>^ containerInitializationAction,
Func<TOperation, CancellationToken, Task<int>^>^ operationExecutionActionAsync
)
static member ExecuteWithCancelAsync :
containerInitializationAction : Func<CancellationToken, ValueTask<IUnityContainer>> *
operationExecutionActionAsync : Func<'TOperation, CancellationToken, Task<int>> -> Task<int> when 'TOperation : ConsoleOperation<'TContext> when 'TContext : OperationContext
- containerInitializationAction FuncCancellationToken, ValueTaskIUnityContainer
-
- operationExecutionActionAsync FuncTOperation, CancellationToken, TaskInt32
-
- TOperation
- TContext
TaskInt32