ICardExternalSourceLogicWriteJsonCardAsync - метод
Запись карточки в формате Json.
Пространство имён: Tessa.CardsСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
Task WriteJsonCardAsync(
ISourceContentProvider targetContentProvider,
CardStoreRequest storeRequest,
CardFile[] cardFiles,
IList<IStorageContentMapping> cardStoragePathFileMappings,
IValidationResultBuilder validationStorageResult,
Dictionary<Guid, Func<CancellationToken, ValueTask<Stream>>> fileStreams = null,
ISourceDirectoryProvider subDirectoryProvider = null,
CancellationToken cancellationToken = default
)
Function WriteJsonCardAsync (
targetContentProvider As ISourceContentProvider,
storeRequest As CardStoreRequest,
cardFiles As CardFile(),
cardStoragePathFileMappings As IList(Of IStorageContentMapping),
validationStorageResult As IValidationResultBuilder,
Optional fileStreams As Dictionary(Of Guid, Func(Of CancellationToken, ValueTask(Of Stream))) = Nothing,
Optional subDirectoryProvider As ISourceDirectoryProvider = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task
Task^ WriteJsonCardAsync(
ISourceContentProvider^ targetContentProvider,
CardStoreRequest^ storeRequest,
array<CardFile^>^ cardFiles,
IList<IStorageContentMapping^>^ cardStoragePathFileMappings,
IValidationResultBuilder^ validationStorageResult,
Dictionary<Guid, Func<CancellationToken, ValueTask<Stream^>>^>^ fileStreams = nullptr,
ISourceDirectoryProvider^ subDirectoryProvider = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract WriteJsonCardAsync :
targetContentProvider : ISourceContentProvider *
storeRequest : CardStoreRequest *
cardFiles : CardFile[] *
cardStoragePathFileMappings : IList<IStorageContentMapping> *
validationStorageResult : IValidationResultBuilder *
?fileStreams : Dictionary<Guid, Func<CancellationToken, ValueTask<Stream>>> *
?subDirectoryProvider : ISourceDirectoryProvider *
?cancellationToken : CancellationToken
(* Defaults:
let _fileStreams = defaultArg fileStreams null
let _subDirectoryProvider = defaultArg subDirectoryProvider null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
- targetContentProvider ISourceContentProvider
- Провайдер для ресурса, куда производится запись.
- storeRequest CardStoreRequest
- Запрос на сохранение карточки.
- cardFiles CardFile
- Массив объектов, прикрепленных к карточке файлов.
- cardStoragePathFileMappings IListIStorageContentMapping
- Список storage-маппингов для выгружаемого контента.
- validationStorageResult IValidationResultBuilder
- ValidationStorageResultBuilder
- fileStreams DictionaryGuid, FuncCancellationToken, ValueTaskStream (Optional)
- Контент прикрепленных к карточке файлов.
- subDirectoryProvider ISourceDirectoryProvider (Optional)
-
Провайдер для поддиректории карточки, если null, то будет вычислен и использован стандартный.>
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
Task