PlaceholderManagerReplaceAsync - метод
Выполняет замену плейсхолдеров в документе.
Пространство имён: Tessa.Platform.PlaceholdersСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ValueTask ReplaceAsync(
IPlaceholderDocument document,
ICollection<IPlaceholder> placeholders,
IValidationResultBuilder validationResult,
Dictionary<string, Object?>? info = null,
ReplacementOptions options = ReplacementOptions.None,
CreateTablePlaceholderContextFuncAsync? createTableContextFuncAsync = null,
CreateViewPlaceholderContextFuncAsync? createViewContextFuncAsync = null,
IExtensionExecutor? extensionExecutor = null,
IExtensionExecutor? extensionReplaceExecutor = null,
CancellationToken cancellationToken = default
)
Public Function ReplaceAsync (
document As IPlaceholderDocument,
placeholders As ICollection(Of IPlaceholder),
validationResult As IValidationResultBuilder,
Optional info As Dictionary(Of String, Object) = Nothing,
Optional options As ReplacementOptions = ReplacementOptions.None,
Optional createTableContextFuncAsync As CreateTablePlaceholderContextFuncAsync = Nothing,
Optional createViewContextFuncAsync As CreateViewPlaceholderContextFuncAsync = Nothing,
Optional extensionExecutor As IExtensionExecutor = Nothing,
Optional extensionReplaceExecutor As IExtensionExecutor = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
virtual ValueTask ReplaceAsync(
IPlaceholderDocument^ document,
ICollection<IPlaceholder^>^ placeholders,
IValidationResultBuilder^ validationResult,
Dictionary<String^, Object^>^ info = nullptr,
ReplacementOptions options = ReplacementOptions::None,
CreateTablePlaceholderContextFuncAsync^ createTableContextFuncAsync = nullptr,
CreateViewPlaceholderContextFuncAsync^ createViewContextFuncAsync = nullptr,
IExtensionExecutor^ extensionExecutor = nullptr,
IExtensionExecutor^ extensionReplaceExecutor = nullptr,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract ReplaceAsync :
document : IPlaceholderDocument *
placeholders : ICollection<IPlaceholder> *
validationResult : IValidationResultBuilder *
?info : Dictionary<string, Object> *
?options : ReplacementOptions *
?createTableContextFuncAsync : CreateTablePlaceholderContextFuncAsync *
?createViewContextFuncAsync : CreateViewPlaceholderContextFuncAsync *
?extensionExecutor : IExtensionExecutor *
?extensionReplaceExecutor : IExtensionExecutor *
?cancellationToken : CancellationToken
(* Defaults:
let _info = defaultArg info null
let _options = defaultArg options ReplacementOptions.None
let _createTableContextFuncAsync = defaultArg createTableContextFuncAsync null
let _createViewContextFuncAsync = defaultArg createViewContextFuncAsync null
let _extensionExecutor = defaultArg extensionExecutor null
let _extensionReplaceExecutor = defaultArg extensionReplaceExecutor null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
override ReplaceAsync :
document : IPlaceholderDocument *
placeholders : ICollection<IPlaceholder> *
validationResult : IValidationResultBuilder *
?info : Dictionary<string, Object> *
?options : ReplacementOptions *
?createTableContextFuncAsync : CreateTablePlaceholderContextFuncAsync *
?createViewContextFuncAsync : CreateViewPlaceholderContextFuncAsync *
?extensionExecutor : IExtensionExecutor *
?extensionReplaceExecutor : IExtensionExecutor *
?cancellationToken : CancellationToken
(* Defaults:
let _info = defaultArg info null
let _options = defaultArg options ReplacementOptions.None
let _createTableContextFuncAsync = defaultArg createTableContextFuncAsync null
let _createViewContextFuncAsync = defaultArg createViewContextFuncAsync null
let _extensionExecutor = defaultArg extensionExecutor null
let _extensionReplaceExecutor = defaultArg extensionReplaceExecutor null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- document IPlaceholderDocument
- Документ, содержащий текст с плейсхолдерами.
- placeholders ICollectionIPlaceholder
- Заменяемые плейсхолдеры.
- validationResult IValidationResultBuilder
- Объект, выполняющий построение результата операции.
- info DictionaryString, Object (Optional)
-
Дополнительная информация, передаваемая в контекст операций поиска и замены,
или null, если дополнительная информация отсутствует.
- options ReplacementOptions (Optional)
- Опции по замене плейсхолдеров.
- createTableContextFuncAsync CreateTablePlaceholderContextFuncAsync (Optional)
-
- createViewContextFuncAsync CreateViewPlaceholderContextFuncAsync (Optional)
-
- extensionExecutor IExtensionExecutor (Optional)
- Объект, исполняющий цепочку расширений.
- extensionReplaceExecutor IExtensionExecutor (Optional)
-
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskАсинхронная задача.
IPlaceholderManagerReplaceAsync(IPlaceholderDocument, ICollectionIPlaceholder, IValidationResultBuilder, DictionaryString, Object, ReplacementOptions, CreateTablePlaceholderContextFuncAsync, CreateViewPlaceholderContextFuncAsync, IExtensionExecutor, IExtensionExecutor, CancellationToken)