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