RichTextBoxAttachmentHelperProcessingFileAttachmentAsync - метод
Запускает обработку вложенного файла.
Пространство имён: Tessa.UI.Controls.CustomRichTextBoxCtrl.CustomRichTextBoxСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
public static Task ProcessingFileAttachmentAsync(
Guid fileId,
Func<Guid, CancellationToken, Task<(List<string> , IValidationResultBuilder validationResult)>> getFileContentFromCardAsync,
Func<string, CancellationToken, Task> openOrSaveFileAction,
CancellationToken cancellationToken = default
)
Public Shared Function ProcessingFileAttachmentAsync (
fileId As Guid,
getFileContentFromCardAsync As Func(Of Guid, CancellationToken, Task(Of ( As List(Of String), validationResult As IValidationResultBuilder))),
openOrSaveFileAction As Func(Of String, CancellationToken, Task),
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
static Task^ ProcessingFileAttachmentAsync(
Guid fileId,
Func<Guid, CancellationToken, Task<ValueTuple<List<String^>^, IValidationResultBuilder^>>^>^ getFileContentFromCardAsync,
Func<String^, CancellationToken, Task^>^ openOrSaveFileAction,
CancellationToken cancellationToken = CancellationToken()
)
static member ProcessingFileAttachmentAsync :
fileId : Guid *
getFileContentFromCardAsync : Func<Guid, CancellationToken, Task<ValueTuple<List<string>, IValidationResultBuilder>>> *
openOrSaveFileAction : Func<string, CancellationToken, Task> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
- fileId Guid
- Идентификатор файла.
- getFileContentFromCardAsync FuncGuid, CancellationToken, TaskValueTupleListString, IValidationResultBuilder
- Действие для получения содержимого файла.
- openOrSaveFileAction FuncString, CancellationToken, Task
- Действие для обработки файла.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskАсинхронная задача.