ScanDocumentGeneratorTryGenerateAsync - метод |
Пространство имён:
Tessa.Extensions.Platform.Client.Scanning
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис public Task<(ScanDocument document, List<ITempFile> temporaryFiles, List<ITempFolder> temporaryFolders)> TryGenerateAsync(
ITempFile[] files,
Func<double, CancellationToken, Task> reportProgressActionAsync = null,
Object externalContext = null,
Dictionary<string, Object> info = null,
CancellationToken cancellationToken = default
)
Public Function TryGenerateAsync (
files As ITempFile(),
Optional reportProgressActionAsync As Func(Of Double, CancellationToken, Task) = Nothing,
Optional externalContext As Object = Nothing,
Optional info As Dictionary(Of String, Object) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of (document As ScanDocument, temporaryFiles As List(Of ITempFile), temporaryFolders As List(Of ITempFolder)))
public:
Task<ValueTuple<ScanDocument^, List<ITempFile^>^, List<ITempFolder^>^>>^ TryGenerateAsync(
array<ITempFile^>^ files,
Func<double, CancellationToken, Task^>^ reportProgressActionAsync = nullptr,
Object^ externalContext = nullptr,
Dictionary<String^, Object^>^ info = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
member TryGenerateAsync :
files : ITempFile[] *
?reportProgressActionAsync : Func<float, CancellationToken, Task> *
?externalContext : Object *
?info : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _reportProgressActionAsync = defaultArg reportProgressActionAsync null
let _externalContext = defaultArg externalContext null
let _info = defaultArg info null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<ScanDocument, List<ITempFile>, List<ITempFolder>>>
Параметры
- files
- Тип: Tessa.Platform.IOITempFile
- reportProgressActionAsync (Optional)
- Тип: SystemFuncDouble, CancellationToken, Task
- externalContext (Optional)
- Тип: SystemObject
- info (Optional)
- Тип: System.Collections.GenericDictionaryString, Object
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskValueTupleScanDocument,
ListITempFile,
ListITempFolderСм. также