57 instantiations of ResourceStateSnapshot
Aspire.Hosting (5)
ApplicationModel\CustomResourceSnapshot.cs (1)
183s is null ? null : new(Text: s, Style: null);
Ats\NotificationExports.cs (1)
89snapshot = snapshot with { State = new ResourceStateSnapshot(state, stateStyle) };
Dcp\DcpExecutor.cs (1)
1627er.DcpResource.Metadata.Name, new ResourceStatus(KnownResourceStates.NotStarted, null, null), s => s with { State = new ResourceStateSnapshot(KnownResourceStates.NotStarted, null) })
Orchestrator\ParameterProcessor.cs (2)
191await UpdateParameterStateAsync(parameterResource, ex.Message, new(stateText, stateStyle)).ConfigureAwait(false); 405await UpdateParameterStateAsync(parameterResource, "Parameter value has been deleted", new("Value missing", KnownResourceStateStyles.Warn)).ConfigureAwait(false);
Aspire.Hosting.Azure (11)
Provisioning\Provisioners\AzureProvisioner.cs (5)
89State = new("Running", KnownResourceStateStyles.Success) 98State = new("Missing subscription configuration", KnownResourceStateStyles.Error) 106State = new("Failed to Provision", KnownResourceStateStyles.Error) 129State = new("Failed to Provision Roles", KnownResourceStateStyles.Error) 145State = new("Starting", KnownResourceStateStyles.Info)
Provisioning\Provisioners\BicepProvisioner.cs (6)
106State = new("Provisioned", KnownResourceStateStyles.Success), 133State = new("Starting", KnownResourceStateStyles.Info), 154State = new("Compiling ARM template", KnownResourceStateStyles.Info) 175State = new("Creating ARM Deployment", KnownResourceStateStyles.Info) 206State = new("Waiting for Deployment", KnownResourceStateStyles.Info), 293State = new("Provisioned", KnownResourceStateStyles.Success),
Aspire.Hosting.Azure.AIFoundry (4)
AzureAIFoundryExtensions.cs (4)
209State = new ResourceStateSnapshot(KnownResourceStates.Starting, KnownResourceStateStyles.Info) 265State = new ResourceStateSnapshot($"Downloading model {model}", KnownResourceStateStyles.Info), 292State = new ResourceStateSnapshot("Loading model", KnownResourceStateStyles.Info) 328State = new ResourceStateSnapshot($"Downloading model {model}: {progress.Percentage:F2}%", KnownResourceStateStyles.Info)
Aspire.Hosting.Maui (3)
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
36State = new ResourceStateSnapshot($"Unsupported: {annotation.Reason}", KnownResourceStateStyles.Warn)
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
121State = new ResourceStateSnapshot("Failed to configure environment", KnownResourceStateStyles.Error)
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
121State = new ResourceStateSnapshot("Failed to configure environment", KnownResourceStateStyles.Error)
Aspire.Hosting.Tests (26)
Backchannel\AppHostBackchannelTests.cs (1)
62State = new ("Running", null),
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
51State = new ResourceStateSnapshot("Running", KnownResourceStateStyles.Success) 55State = new ResourceStateSnapshot("Running", KnownResourceStateStyles.Success) 96State = new ResourceStateSnapshot("Running", KnownResourceStateStyles.Success),
Backchannel\Exec\ContainerResourceExecTests.cs (1)
72State = new("Running", null),
Backchannel\Exec\ProjectResourceExecTests.cs (1)
133State = new("Running", null),
Dashboard\DashboardServiceTests.cs (1)
172return s with { State = new ResourceStateSnapshot("Starting", null) };
Health\ResourceHealthCheckServiceTests.cs (19)
35State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 43State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 75State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 83State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 118State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 126State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 165State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 180State = new ResourceStateSnapshot(KnownResourceStates.Exited, null) 188State = new ResourceStateSnapshot(KnownResourceStates.Running, null), 351State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 382State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 444State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 489State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 540State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 548State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 584State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 592State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 630State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 638State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
CustomResources.AppHost (7)
TalkingClockResource.cs (6)
100s => s with { State = new ResourceStateSnapshot("Tick", KnownResourceStateStyles.Success) }); 102s => s with { State = new ResourceStateSnapshot("On", KnownResourceStateStyles.Success) }); 104s => s with { State = new ResourceStateSnapshot("Off", KnownResourceStateStyles.Info) }); 110s => s with { State = new ResourceStateSnapshot("Tock", KnownResourceStateStyles.Success) }); 112s => s with { State = new ResourceStateSnapshot("Off", KnownResourceStateStyles.Info) }); 114s => s with { State = new ResourceStateSnapshot("On", KnownResourceStateStyles.Success) });
TestResource.cs (1)
66State = new(randomState, randomStyle)
HealthChecksSandbox.AppHost (1)
Program.cs (1)
77state => state with { State = new("Running", "success") });
4 references to ResourceStateSnapshot
Aspire.Hosting (4)
ApplicationModel\CustomResourceSnapshot.cs (3)
19private readonly ResourceStateSnapshot? _state; 54public ResourceStateSnapshot? State 182public static implicit operator ResourceStateSnapshot?(string? s) =>
Orchestrator\ParameterProcessor.cs (1)
592private async Task UpdateParameterStateAsync(ParameterResource parameterResource, string value, ResourceStateSnapshot? state)