2 instantiations of PublishingStep
Aspire.Hosting (2)
Publishing\NullPublishingActivityProgressReporter.cs (1)
26var step = new PublishingStep(Guid.NewGuid().ToString(), title)
Publishing\PublishingActivityProgressReporter.cs (1)
381var step = new PublishingStep(Guid.NewGuid().ToString(), title)
39 references to PublishingStep
Aspire.Hosting (31)
Publishing\NullPublishingActivityProgressReporter.cs (4)
24public Task<PublishingStep> CreateStepAsync(string title, CancellationToken cancellationToken) 26var step = new PublishingStep(Guid.NewGuid().ToString(), title) 34public Task<PublishingTask> CreateTaskAsync(PublishingStep step, string statusText, CancellationToken cancellationToken) 45public Task CompleteStepAsync(PublishingStep step, string completionText, CompletionState completionState, CancellationToken cancellationToken = default)
Publishing\Publisher.cs (1)
31var step = await progressReporter.CreateStepAsync(
Publishing\PublishingActivityProgressReporter.cs (14)
179internal PublishingTask(string id, string stepId, string statusText, PublishingStep parentStep) 199public PublishingStep ParentStep { get; internal set; } 309Task<PublishingStep> CreateStepAsync(string title, CancellationToken cancellationToken); 319Task<PublishingTask> CreateTaskAsync(PublishingStep step, string statusText, CancellationToken cancellationToken); 328Task CompleteStepAsync(PublishingStep step, string completionText, CompletionState completionState, CancellationToken cancellationToken = default); 359private readonly ConcurrentDictionary<string, PublishingStep> _steps = new(); 379public async Task<PublishingStep> CreateStepAsync(string title, CancellationToken cancellationToken) 381var step = new PublishingStep(Guid.NewGuid().ToString(), title) 403public async Task<PublishingTask> CreateTaskAsync(PublishingStep step, string statusText, CancellationToken cancellationToken) 405if (!_steps.TryGetValue(step.Id, out var parentStep)) 442public async Task CompleteStepAsync(PublishingStep step, string completionText, CompletionState completionState, CancellationToken cancellationToken = default) 467if (!_steps.TryGetValue(task.StepId, out var parentStep)) 499if (!_steps.TryGetValue(task.StepId, out var parentStep)) 572foreach (var step in _steps.Values)
Publishing\PublishingExtensions.cs (7)
11/// Extension methods for <see cref="PublishingStep"/> and <see cref="PublishingTask"/> to provide direct operations. 24public static async Task<PublishingStep> SucceedAsync( 25this PublishingStep step, 47public static async Task<PublishingStep> WarnAsync( 48this PublishingStep step, 70public static async Task<PublishingStep> FailAsync( 71this PublishingStep step,
Publishing\ResourceContainerImageBuilder.cs (5)
53var step = await activityReporter.CreateStepAsync( 101private async Task BuildImageAsync(PublishingStep? step, IResource resource, CancellationToken cancellationToken) 136private async Task BuildProjectContainerImageAsync(IResource resource, PublishingStep? step, CancellationToken cancellationToken) 200private async Task BuildContainerImageFromDockerfileAsync(string resourceName, string contextPath, string dockerfilePath, string imageName, PublishingStep? step, CancellationToken cancellationToken) 236PublishingStep? step,
Aspire.Hosting.Azure (2)
AzurePublishingContext.cs (2)
78var step = await ProgressReporter.CreateStepAsync( 108private async Task WriteAzureArtifactsOutputAsync(PublishingStep step, DistributedApplicationModel model, AzureEnvironmentResource environment, CancellationToken cancellationToken)
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
129var step = await progressReporter.CreateStepAsync(
Aspire.Hosting.Tests (5)
Publishing\NullPublishingActivityProgressReporterTests.cs (2)
17var step = await reporter.CreateStepAsync("step initial", default); 28var step = new PublishingStep("step-1", "step initial");
Publishing\PublishingActivityProgressReporterTests.cs (1)
91var nonExistentStep = new PublishingStep("non-existent-step", "Non-existent Step");
Publishing\PublishingExtensionsTests.cs (2)
36var step = new PublishingStep("test-id", "Test Step"); 49var step = await reporter.CreateStepAsync("Test Step", CancellationToken.None);