Task<(CardNewRequest Request, CardNewResponse? Response)> CreateFromTemplateAsync(
CardStoreRequest request,
CardHeader? header = null,
Func<long, CancellationToken, ValueTask<SubStream>>? readNextFileFuncAsync = null,
Func<CardFileContentParameter, ValueTask>? processFileActionAsync = null,
Dictionary<string, Object?>? templateInfo = null,
ICardFileSourceMapping? externalMapping = null,
IValidationResultBuilder? extraErrorValidation = null,
CancellationToken cancellationToken = default
)
Function CreateFromTemplateAsync (
request As CardStoreRequest,
Optional header As CardHeader = Nothing,
Optional readNextFileFuncAsync As Func(Of Long, CancellationToken, ValueTask(Of SubStream)) = Nothing,
Optional processFileActionAsync As Func(Of CardFileContentParameter, ValueTask) = Nothing,
Optional templateInfo As Dictionary(Of String, Object) = Nothing,
Optional externalMapping As ICardFileSourceMapping = Nothing,
Optional extraErrorValidation As IValidationResultBuilder = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of (Request As CardNewRequest, Response As CardNewResponse))
Task<ValueTuple<CardNewRequest^, CardNewResponse^>>^ CreateFromTemplateAsync(
CardStoreRequest^ request,
CardHeader^ header = nullptr,
Func<long long, CancellationToken, ValueTask<SubStream^>>^ readNextFileFuncAsync = nullptr,
Func<CardFileContentParameter^, ValueTask>^ processFileActionAsync = nullptr,
Dictionary<String^, Object^>^ templateInfo = nullptr,
ICardFileSourceMapping^ externalMapping = nullptr,
IValidationResultBuilder^ extraErrorValidation = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract CreateFromTemplateAsync :
request : CardStoreRequest *
?header : CardHeader *
?readNextFileFuncAsync : Func<int64, CancellationToken, ValueTask<SubStream>> *
?processFileActionAsync : Func<CardFileContentParameter, ValueTask> *
?templateInfo : Dictionary<string, Object> *
?externalMapping : ICardFileSourceMapping *
?extraErrorValidation : IValidationResultBuilder *
?cancellationToken : CancellationToken
(* Defaults:
let _header = defaultArg header null
let _readNextFileFuncAsync = defaultArg readNextFileFuncAsync null
let _processFileActionAsync = defaultArg processFileActionAsync null
let _templateInfo = defaultArg templateInfo null
let _externalMapping = defaultArg externalMapping null
let _extraErrorValidation = defaultArg extraErrorValidation null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<CardNewRequest, CardNewResponse>>
Дополнительная информация, помещаемая в запрос на создание карточки по шаблону, или null, если дополнительная информация отсутствует.
Если при экспорте карточки была задана дополнительная информация, то она совмещается с заданной в этом параметре, причём при совпадении ключей информация в параметре переопределяет информацию, заданную при экспорте.