KrCardValidationManagerValidateTaskAsync - метод |
Пространство имён:
Tessa.Extensions.Default.Client.Workflow.KrPermissions
Сборка:
Tessa.Extensions.Default.Client (в Tessa.Extensions.Default.Client.dll) Версия: 3.5.0.19
Синтаксис public Task<ICardValidationResult> ValidateTaskAsync(
IEnumerable<CardTypeValidator> validators,
Guid mainCardTypeID,
Card mainCard,
CardStoreMode storeMode,
Guid taskCardTypeID,
Card taskCard,
ISerializableObject externalContextInfo = null,
Func<ICardValidationContext, ValueTask> modifyContextActionAsync = null,
CardValidationMode validationMode = CardValidationMode.Task,
CancellationToken cancellationToken = default
)
Public Function ValidateTaskAsync (
validators As IEnumerable(Of CardTypeValidator),
mainCardTypeID As Guid,
mainCard As Card,
storeMode As CardStoreMode,
taskCardTypeID As Guid,
taskCard As Card,
Optional externalContextInfo As ISerializableObject = Nothing,
Optional modifyContextActionAsync As Func(Of ICardValidationContext, ValueTask) = Nothing,
Optional validationMode As CardValidationMode = CardValidationMode.Task,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ICardValidationResult)
public:
virtual Task<ICardValidationResult^>^ ValidateTaskAsync(
IEnumerable<CardTypeValidator^>^ validators,
Guid mainCardTypeID,
Card^ mainCard,
CardStoreMode storeMode,
Guid taskCardTypeID,
Card^ taskCard,
ISerializableObject^ externalContextInfo = nullptr,
Func<ICardValidationContext^, ValueTask>^ modifyContextActionAsync = nullptr,
CardValidationMode validationMode = CardValidationMode::Task,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract ValidateTaskAsync :
validators : IEnumerable<CardTypeValidator> *
mainCardTypeID : Guid *
mainCard : Card *
storeMode : CardStoreMode *
taskCardTypeID : Guid *
taskCard : Card *
?externalContextInfo : ISerializableObject *
?modifyContextActionAsync : Func<ICardValidationContext, ValueTask> *
?validationMode : CardValidationMode *
?cancellationToken : CancellationToken
(* Defaults:
let _externalContextInfo = defaultArg externalContextInfo null
let _modifyContextActionAsync = defaultArg modifyContextActionAsync null
let _validationMode = defaultArg validationMode CardValidationMode.Task
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ICardValidationResult>
override ValidateTaskAsync :
validators : IEnumerable<CardTypeValidator> *
mainCardTypeID : Guid *
mainCard : Card *
storeMode : CardStoreMode *
taskCardTypeID : Guid *
taskCard : Card *
?externalContextInfo : ISerializableObject *
?modifyContextActionAsync : Func<ICardValidationContext, ValueTask> *
?validationMode : CardValidationMode *
?cancellationToken : CancellationToken
(* Defaults:
let _externalContextInfo = defaultArg externalContextInfo null
let _modifyContextActionAsync = defaultArg modifyContextActionAsync null
let _validationMode = defaultArg validationMode CardValidationMode.Task
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ICardValidationResult>
Параметры
- validators
- Тип: System.Collections.GenericIEnumerableCardTypeValidator
- mainCardTypeID
- Тип: SystemGuid
- mainCard
- Тип: Tessa.CardsCard
- storeMode
- Тип: Tessa.CardsCardStoreMode
- taskCardTypeID
- Тип: SystemGuid
- taskCard
- Тип: Tessa.CardsCard
- externalContextInfo (Optional)
- Тип: Tessa.Platform.StorageISerializableObject
- modifyContextActionAsync (Optional)
- Тип: SystemFuncICardValidationContext, ValueTask
- validationMode (Optional)
- Тип: Tessa.Cards.ValidationCardValidationMode
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskICardValidationResultРеализации
ICardValidationManagerValidateTaskAsync(IEnumerableCardTypeValidator, Guid, Card, CardStoreMode, Guid, Card, ISerializableObject, FuncICardValidationContext, ValueTask, CardValidationMode, CancellationToken)См. также