1 implementation of IPostAction
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
PostAction.cs (1)
11internal class PostAction : IPostAction
32 references to IPostAction
dotnet (7)
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (2)
35protected override bool ProcessInternal(IEngineEnvironmentSettings environment, IPostAction action, ICreationEffects creationEffects, ICreationResult templateCreationResult, string outputBasePath) 114private bool AddReference(IPostAction actionConfig, string projectFile, string outputBasePath, ICreationEffects creationEffects)
Commands\New\PostActions\DotnetRestorePostActionProcessor.cs (1)
18protected override bool ProcessInternal(IEngineEnvironmentSettings environment, IPostAction actionConfig, ICreationEffects creationEffects, ICreationResult templateCreationResult, string outputBasePath)
Commands\New\PostActions\DotnetSlnPostActionProcessor.cs (4)
51internal static bool TryGetProjectFilesToAdd(IPostAction actionConfig, ICreationResult templateCreationResult, string outputBasePath, [NotNullWhen(true)] out IReadOnlyList<string> projectFiles) 90protected override bool ProcessInternal(IEngineEnvironmentSettings environment, IPostAction action, ICreationEffects creationEffects, ICreationResult templateCreationResult, string outputBasePath) 158private static string? GetSolutionFolder(IPostAction actionConfig) 167private static bool? GetInRoot(IPostAction actionConfig)
Microsoft.TemplateEngine.Abstractions (1)
ICreationResult.cs (1)
14IReadOnlyList<IPostAction> PostActions { get; }
Microsoft.TemplateEngine.Cli (16)
PostActionDispatcher.cs (7)
65/// Note that if <see cref="IPostAction.ContinueOnError"/> is set to true, the result will be <see cref="PostActionExecutionStatus.Success"/> even if the post action fails. 66/// If the user cancelled post action with <see cref="IPostAction.ContinueOnError"/> set to true, the result will be <see cref="PostActionExecutionStatus.Cancelled"></see> anyway.<br /> 82IReadOnlyList<IPostAction> postActions = isDryRun 97foreach (IPostAction action in postActions) 175private bool AskUserIfActionShouldRun(IPostAction action) 215IPostAction action, 241private void DisplayInstructionsForAction(IPostAction action, bool useErrorOutput = false)
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (3)
81IPostAction action, 173private static JsonNode? AddElementToJson(IPhysicalFileSystem fileSystem, string targetJsonFile, string? propertyPath, string propertyPathSeparator, string newJsonPropertyName, string newJsonPropertyValue, IPostAction action) 302public static JsonContentParameters? CreateFromPostAction(IPostAction action)
PostActionProcessors\ChmodPostActionProcessor.cs (1)
17protected override bool ProcessInternal(IEngineEnvironmentSettings environment, IPostAction actionConfig, ICreationEffects creationEffects, ICreationResult templateCreationResult, string outputBasePath)
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (1)
16protected override bool ProcessInternal(IEngineEnvironmentSettings environment, IPostAction actionConfig, ICreationEffects creationEffects, ICreationResult templateCreationResult, string outputBasePath)
PostActionProcessors\IPostActionProcessor.cs (1)
22bool Process(IEngineEnvironmentSettings environment, IPostAction action, ICreationEffects creationEffects, ICreationResult templateCreationResult, string outputBasePath);
PostActionProcessors\PostActionProcessorBase.cs (2)
17IPostAction action, 118IPostAction action,
PostActionProcessors\ProcessStartPostActionProcessor.cs (1)
17protected override bool ProcessInternal(IEngineEnvironmentSettings environment, IPostAction actionConfig, ICreationEffects creationEffects, ICreationResult templateCreationResult, string outputBasePath)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (8)
CreationResult.cs (2)
10public CreationResult(IReadOnlyList<IPostAction> postActions, IReadOnlyList<ICreationPath> primaryOutputs) 16public IReadOnlyList<IPostAction> PostActions { get; }
IRunnableProjectConfig.cs (1)
30IReadOnlyList<IPostAction> PostActions { get; }
PostAction.cs (3)
32internal static List<IPostAction> Evaluate( 39List<IPostAction> actionList = new(); 91IPostAction postAction = new PostAction(
RunnableProjectConfig.cs (2)
51private IReadOnlyList<IPostAction>? _evaluatedPostActions; 87public IReadOnlyList<IPostAction> PostActions => _evaluatedPostActions ?? throw new InvalidOperationException($"{nameof(Evaluate)} should be called before accessing the property.");