26 writes to State
Aspire.Cli.Tests (26)
Backchannel\ResourceWaitServiceTests.cs (5)
39
State
= "Running"
69
State
= "FailedToStart"
99
State
= "Waiting",
139
return Task.FromResult(new WaitForResourceResponse { Success = true,
State
= "Running" });
182
return Task.FromResult(new WaitForResourceResponse { Success = true,
State
= "Running" });
Commands\AgentMcpCommandTests.cs (2)
815
return Task.FromResult(new WaitForResourceResponse { Success = true,
State
= "Running" });
852
State
= currentState,
Commands\WaitCommandTests.cs (5)
191
return Task.FromResult(new WaitForResourceResponse { Success = true,
State
= "Running" });
230
WaitForResourceResult = new WaitForResourceResponse { Success = true,
State
= "Running", HealthStatus = "Healthy" }
298
WaitForResourceResult = new WaitForResourceResponse { Success = true,
State
= "Exited" }
326
State
= "FailedToStart",
369
State
= "FailedToStart"
Mcp\WaitForResourcesToolTests.cs (13)
117
State
= "Running",
195
State
= "Running",
325
State
= "Running"
450
["clean-exit"] = new() { Success = true,
State
= "Exited" },
455
State
= "Running",
467
State
= "FailedToStart",
473
State
= "FailedToStart",
479
State
= "secret-custom-state"
544
? new WaitForResourceResponse { Success = true,
State
= "Running", HealthStatus = "Healthy" }
545
: new WaitForResourceResponse { Success = false, TimedOut = true,
State
= "Starting" });
580
State
= "Running",
624
return new WaitForResourceResponse { Success = true,
State
= "Running" };
702
State
= "Running",
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
328
public WaitForResourceResponse WaitForResourceResult { get; set; } = new WaitForResourceResponse { Success = true,
State
= "Running" };
3 references to State
aspire (3)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
1061
_logger.LogDebug("Wait for resource '{ResourceName}' completed: success={Success}, state={State}", resourceName, response.Success, response.
State
);
Backchannel\ResourceWaitService.cs (2)
158
_ when IsTerminalFailureState(response.
State
) => ResourceWaitOutcome.Failure,
168
response.
State
,