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