ConditionHelperSerializeConditionSettingsAsync - метод
Сериализует настройки условия в JSON.
Пространство имён: Tessa.Platform.ConditionsСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static ValueTask<string> SerializeConditionSettingsAsync(
CardRow conditionRow,
Card mainCard,
ICardMetadata cardMetadata,
IConditionTypesProvider conditionTypesProvider,
bool typedJson,
CancellationToken cancellationToken = default
)
Public Shared Function SerializeConditionSettingsAsync (
conditionRow As CardRow,
mainCard As Card,
cardMetadata As ICardMetadata,
conditionTypesProvider As IConditionTypesProvider,
typedJson As Boolean,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of String)
public:
static ValueTask<String^> SerializeConditionSettingsAsync(
CardRow^ conditionRow,
Card^ mainCard,
ICardMetadata^ cardMetadata,
IConditionTypesProvider^ conditionTypesProvider,
bool typedJson,
CancellationToken cancellationToken = CancellationToken()
)
static member SerializeConditionSettingsAsync :
conditionRow : CardRow *
mainCard : Card *
cardMetadata : ICardMetadata *
conditionTypesProvider : IConditionTypesProvider *
typedJson : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<string>
- conditionRow CardRow
- Строка условия.
- mainCard Card
- Карточка, содержащая настройки условия.
- cardMetadata ICardMetadata
- Метаданные карточек.
- conditionTypesProvider IConditionTypesProvider
- Провайдер типов условий.
- typedJson Boolean
- Определяет, нужно ли сериализовать настройки в типизированный JSON.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskStringСериализованные в JSON настройки условия.