PlaceholderManagerReplaceAsync - метод
Выполняет замену плейсхолдеров в документе.
Пространство имён: Tessa.Platform.PlaceholdersСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public Task ReplaceAsync(
IPlaceholderDocument document,
ICollection<IPlaceholder> placeholders,
IValidationResultBuilder validationResult,
Dictionary<string, Object> info = null,
ReplacementOptions options = ReplacementOptions.None,
CreateTablePlaceholderContextFuncAsync createTableContextFuncAsync = null,
CreateViewPlaceholderContextFuncAsync createViewContextFuncAsync = null,
IExtensionExecutor<IPlaceholderExtension> extensionExecutor = null,
IExtensionExecutor<IPlaceholderReplaceExtension> 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(Of IPlaceholderExtension) = Nothing,
Optional extensionReplaceExecutor As IExtensionExecutor(Of IPlaceholderReplaceExtension) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
virtual Task^ ReplaceAsync(
IPlaceholderDocument^ document,
ICollection<IPlaceholder^>^ placeholders,
IValidationResultBuilder^ validationResult,
Dictionary<String^, Object^>^ info = nullptr,
ReplacementOptions options = ReplacementOptions::None,
CreateTablePlaceholderContextFuncAsync^ createTableContextFuncAsync = nullptr,
CreateViewPlaceholderContextFuncAsync^ createViewContextFuncAsync = nullptr,
IExtensionExecutor<IPlaceholderExtension^>^ extensionExecutor = nullptr,
IExtensionExecutor<IPlaceholderReplaceExtension^>^ 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<IPlaceholderExtension> *
?extensionReplaceExecutor : IExtensionExecutor<IPlaceholderReplaceExtension> *
?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()
*)
-> Task
override ReplaceAsync :
document : IPlaceholderDocument *
placeholders : ICollection<IPlaceholder> *
validationResult : IValidationResultBuilder *
?info : Dictionary<string, Object> *
?options : ReplacementOptions *
?createTableContextFuncAsync : CreateTablePlaceholderContextFuncAsync *
?createViewContextFuncAsync : CreateViewPlaceholderContextFuncAsync *
?extensionExecutor : IExtensionExecutor<IPlaceholderExtension> *
?extensionReplaceExecutor : IExtensionExecutor<IPlaceholderReplaceExtension> *
?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()
*)
-> Task
- document IPlaceholderDocument
- Документ, содержащий текст с плейсхолдерами.
- placeholders ICollectionIPlaceholder
- Заменяемые плейсхолдеры.
- validationResult IValidationResultBuilder
- Объект, выполняющий построение результата операции.
- info DictionaryString, Object (Optional)
-
Дополнительная информация, передаваемая в контекст операций поиска и замены,
или null, если дополнительная информация отсутствует.
- options ReplacementOptions (Optional)
- Опции по замене плейсхолдеров.
- createTableContextFuncAsync CreateTablePlaceholderContextFuncAsync (Optional)
-
- createViewContextFuncAsync CreateViewPlaceholderContextFuncAsync (Optional)
-
- extensionExecutor IExtensionExecutorIPlaceholderExtension (Optional)
- Объект, исполняющий цепочку расширений.
- extensionReplaceExecutor IExtensionExecutorIPlaceholderReplaceExtension (Optional)
-
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskАсинхронная задача.
IPlaceholderManagerReplaceAsync(IPlaceholderDocument, ICollectionIPlaceholder, IValidationResultBuilder, DictionaryString, Object, ReplacementOptions, CreateTablePlaceholderContextFuncAsync, CreateViewPlaceholderContextFuncAsync, IExtensionExecutorIPlaceholderExtension, IExtensionExecutorIPlaceholderReplaceExtension, CancellationToken)