RichTextBoxAttachmentHelperProcessInnerImageAttachmentAsync - метод
Запускает обработку вложенного изображения.
Пространство имён: Tessa.UI.Controls.CustomRichTextBoxCtrl.CustomRichTextBoxСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
public static Task ProcessInnerImageAttachmentAsync(
Guid fileId,
Func<Guid, CancellationToken, Task<(List<string> , IValidationResultBuilder validationResult)>> getFileContentFromCardAsync,
Func<string, CancellationToken, Task> openOrSaveFileAction,
CancellationToken cancellationToken = default
)
Public Shared Function ProcessInnerImageAttachmentAsync (
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^ ProcessInnerImageAttachmentAsync(
Guid fileId,
Func<Guid, CancellationToken, Task<ValueTuple<List<String^>^, IValidationResultBuilder^>>^>^ getFileContentFromCardAsync,
Func<String^, CancellationToken, Task^>^ openOrSaveFileAction,
CancellationToken cancellationToken = CancellationToken()
)
static member ProcessInnerImageAttachmentAsync :
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Асинхронная задача.