49 instantiations of ResourceStateSnapshot
Aspire.Hosting (3)
ApplicationModel\CustomResourceSnapshot.cs (1)
183s is null ? null : new(Text: s, Style: null);
Dcp\DcpExecutor.cs (1)
1118await _executorEvents.PublishAsync(new OnResourceChangedContext(cancellationToken, resourceType, resource, er.DcpResource.Metadata.Name, new ResourceStatus(KnownResourceStates.NotStarted, null, null), s => s with { State = new ResourceStateSnapshot(KnownResourceStates.NotStarted, null) })).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
109State = new(stateText, KnownResourceStateStyles.Error),
Aspire.Hosting.Azure (11)
Provisioning\Provisioners\AzureProvisioner.cs (5)
95State = new("Running", KnownResourceStateStyles.Success) 104State = new("Missing subscription configuration", KnownResourceStateStyles.Error) 112State = new("Failed to Provision", KnownResourceStateStyles.Error) 135State = new("Failed to Provision Roles", KnownResourceStateStyles.Error) 151State = new("Starting", KnownResourceStateStyles.Info)
Provisioning\Provisioners\BicepProvisioner.cs (6)
93State = new("Provisioned", KnownResourceStateStyles.Success), 120State = new("Starting", KnownResourceStateStyles.Info), 140State = new("Compiling ARM template", KnownResourceStateStyles.Info) 160State = new("Creating ARM Deployment", KnownResourceStateStyles.Info) 199State = new("Waiting for Deployment", KnownResourceStateStyles.Info), 290State = 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), 289State = new ResourceStateSnapshot("Loading model", KnownResourceStateStyles.Info) 325State = new ResourceStateSnapshot($"Downloading model {model}: {progress.Percentage:F2}%", KnownResourceStateStyles.Info)
Aspire.Hosting.Tests (23)
Backchannel\AppHostBackchannelTests.cs (1)
62State = new ("Running", null),
Backchannel\Exec\ContainerResourceExecTests.cs (1)
71State = new("Running", null),
Backchannel\Exec\ProjectResourceExecTests.cs (1)
130State = new("Running", null),
Dashboard\DashboardServiceTests.cs (1)
170return s with { State = new ResourceStateSnapshot("Starting", null) };
Health\ResourceHealthCheckServiceTests.cs (19)
34State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 42State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 74State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 82State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 117State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 125State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 164State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 179State = new ResourceStateSnapshot(KnownResourceStates.Exited, null) 187State = new ResourceStateSnapshot(KnownResourceStates.Running, null), 350State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 381State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 443State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 488State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 539State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 547State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 583State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 591State = new ResourceStateSnapshot(KnownResourceStates.Running, null) 629State = new ResourceStateSnapshot(KnownResourceStates.Starting, null) 637State = 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)
62State = new(randomState, randomStyle)
HealthChecksSandbox.AppHost (1)
Program.cs (1)
76state => state with { State = new("Running", "success") });
3 references to ResourceStateSnapshot
Aspire.Hosting (3)
ApplicationModel\CustomResourceSnapshot.cs (3)
19private readonly ResourceStateSnapshot? _state; 54public ResourceStateSnapshot? State 182public static implicit operator ResourceStateSnapshot?(string? s) =>