CardExternalSourceLogicReadJsonCardAsync - метод
Чтение Json карточки.
Пространство имён: Tessa.CardsСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ValueTask<(CardStoreRequest CardStoreRequest, List<Object> Storage, IList<string?> StorageRelativeFilePaths)> ReadJsonCardAsync(
ISourceContentProvider sourceContentProvider,
IValidationResultBuilder validationResult,
ISourceDirectoryProvider? subContentSourceProvider = null,
CancellationToken cancellationToken = default
)
Public Function ReadJsonCardAsync (
sourceContentProvider As ISourceContentProvider,
validationResult As IValidationResultBuilder,
Optional subContentSourceProvider As ISourceDirectoryProvider = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of (CardStoreRequest As CardStoreRequest, Storage As List(Of Object), StorageRelativeFilePaths As IList(Of String)))
public:
virtual ValueTask<ValueTuple<CardStoreRequest^, List<Object^>^, IList<String^>^>> ReadJsonCardAsync(
ISourceContentProvider^ sourceContentProvider,
IValidationResultBuilder^ validationResult,
ISourceDirectoryProvider^ subContentSourceProvider = nullptr,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract ReadJsonCardAsync :
sourceContentProvider : ISourceContentProvider *
validationResult : IValidationResultBuilder *
?subContentSourceProvider : ISourceDirectoryProvider *
?cancellationToken : CancellationToken
(* Defaults:
let _subContentSourceProvider = defaultArg subContentSourceProvider null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ValueTuple<CardStoreRequest, List<Object>, IList<string>>>
override ReadJsonCardAsync :
sourceContentProvider : ISourceContentProvider *
validationResult : IValidationResultBuilder *
?subContentSourceProvider : ISourceDirectoryProvider *
?cancellationToken : CancellationToken
(* Defaults:
let _subContentSourceProvider = defaultArg subContentSourceProvider null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ValueTuple<CardStoreRequest, List<Object>, IList<string>>>
- sourceContentProvider ISourceContentProvider
- Провайдер для ресурса - источинка, откуда производится чтение.
- validationResult IValidationResultBuilder
- Результат валидации.
- subContentSourceProvider ISourceDirectoryProvider (Optional)
- Провайдер поддиректории карточки.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskValueTupleCardStoreRequest,
ListObject,
IListString
Объект запроса на сохранение карточки.
Объект storage в котором содержится информация о файлах, прикрепленых к карточке.
Список относительных путей до файлов с внешним storage-контентом карточки.
ICardExternalSourceLogicReadJsonCardAsync(ISourceContentProvider, IValidationResultBuilder, ISourceDirectoryProvider, CancellationToken)