ScanServiceProxyStartScanAsync - метод
Отправляет запрос на сканирование
Пространство имён: Tessa.HostСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ValueTask StartScanAsync(
IScanRequest request,
Func<MemoryStream, CancellationToken, ValueTask> processImageActionAsync,
Func<ValidationResult, CancellationToken, ValueTask> processCompletedActionAsync,
CancellationToken cancellationToken = default
)
Public Function StartScanAsync (
request As IScanRequest,
processImageActionAsync As Func(Of MemoryStream, CancellationToken, ValueTask),
processCompletedActionAsync As Func(Of ValidationResult, CancellationToken, ValueTask),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
virtual ValueTask StartScanAsync(
IScanRequest^ request,
Func<MemoryStream^, CancellationToken, ValueTask>^ processImageActionAsync,
Func<ValidationResult^, CancellationToken, ValueTask>^ processCompletedActionAsync,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract StartScanAsync :
request : IScanRequest *
processImageActionAsync : Func<MemoryStream, CancellationToken, ValueTask> *
processCompletedActionAsync : Func<ValidationResult, CancellationToken, ValueTask> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
override StartScanAsync :
request : IScanRequest *
processImageActionAsync : Func<MemoryStream, CancellationToken, ValueTask> *
processCompletedActionAsync : Func<ValidationResult, CancellationToken, ValueTask> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- request IScanRequest
-
Запрос к сервису сканирования
- processImageActionAsync FuncMemoryStream, CancellationToken, ValueTask
-
Операция обработки изображения.
- processCompletedActionAsync FuncValidationResult, CancellationToken, ValueTask
-
Операция завершения сканирования
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskАсинхронная задача.
IScanServiceProxyStartScanAsync(IScanRequest, FuncMemoryStream, CancellationToken, ValueTask, FuncValidationResult, CancellationToken, ValueTask, CancellationToken)