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