本文整理汇总了TypeScript中core/registry.Registry.pipeline.registerTransformer方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Registry.pipeline.registerTransformer方法的具体用法?TypeScript Registry.pipeline.registerTransformer怎么用?TypeScript Registry.pipeline.registerTransformer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core/registry.Registry.pipeline
的用法示例。
在下文中一共展示了Registry.pipeline.registerTransformer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: WaitForConditionTransformer
import { Registry } from 'core/registry';
import { ExecutionDetailsTasks } from '../common';
import { WaitForConditionTransformer } from './waitForCondition.transformer';
import { WaitForConditionExecutionDetails } from './WaitForConditionExecutionDetails';
Registry.pipeline.registerStage({
label: 'Wait For Condition',
description: 'Waits until a set of conditions are met',
key: 'waitForCondition',
executionDetailsSections: [WaitForConditionExecutionDetails, ExecutionDetailsTasks],
synthetic: true,
});
Registry.pipeline.registerTransformer(new WaitForConditionTransformer());
示例2: ExecutionWindowsTransformer
import { Registry } from 'core/registry';
import { ExecutionDetailsTasks } from '../common';
import { ExecutionWindowExecutionDetails } from './ExecutionWindowExecutionDetails';
import { ExecutionWindowsTransformer } from './executionWindows.transformer';
Registry.pipeline.registerStage({
label: 'Restrict Execution During',
synthetic: true,
description: 'Restricts execution of stage during specified period of time',
key: 'restrictExecutionDuringTimeWindow',
executionDetailsSections: [ExecutionWindowExecutionDetails, ExecutionDetailsTasks],
});
Registry.pipeline.registerTransformer(new ExecutionWindowsTransformer());
示例3:
.run((executionWindowsTransformer: any) => {
Registry.pipeline.registerTransformer(executionWindowsTransformer);
});