35 writes to State
Aspire.Hosting (10)
Dashboard\DashboardServiceData.cs (5)
208
return new InteractionCompletionState { Complete = true,
State
= request.MessageBox.Result };
210
return new InteractionCompletionState { Complete = true,
State
= request.Notification.Result };
212
return new InteractionCompletionState { Complete = true,
State
= request.PromptProgress.Result };
219
return new InteractionCompletionState { Complete = true,
State
= request.PromptTerminal.Result };
237
return new InteractionCompletionState { Complete = !request.ResponseUpdate,
State
= inputsInfo.Inputs };
InteractionService.cs (2)
384
CompleteWorkInteraction(newState, new InteractionCompletionState { Complete = true,
State
= true });
540
result = new InteractionCompletionState { Complete = false,
State
= result.State };
Pipelines\PipelineActivityReporter.cs (3)
453
State
= inputsInfo.Inputs
469
State
= result
476
State
= null
Aspire.Hosting.Tests (25)
InteractionServiceTests.cs (23)
35
await CompleteInteractionAsync(interactionService, interaction.InteractionId, new InteractionCompletionState { Complete = true,
State
= true });
100
await CompleteInteractionAsync(interactionService, id1.Value, new InteractionCompletionState { Complete = true,
State
= true });
108
await CompleteInteractionAsync(interactionService, id2.Value, new InteractionCompletionState { Complete = true,
State
= false });
146
var result1 = new InteractionCompletionState { Complete = true,
State
= true };
154
var result2 = new InteractionCompletionState { Complete = true,
State
= false };
487
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
511
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
534
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
557
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
578
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
601
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
636
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
972
new InteractionCompletionState { Complete = true,
State
= inputs },
1097
new InteractionCompletionState { Complete = false,
State
= inputsInteractionInfo.Inputs },
1154
new InteractionCompletionState { Complete = true,
State
= inputs },
1278
await CompleteInteractionAsync(interactionService, interaction.InteractionId, new InteractionCompletionState { Complete = true,
State
= false });
1314
await CompleteInteractionAsync(interactionService, interaction.InteractionId, new InteractionCompletionState { Complete = true,
State
= false });
1389
await CompleteInteractionAsync(interactionService, interaction.InteractionId, new InteractionCompletionState { Complete = true,
State
= false });
1466
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
1537
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
1585
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
1608
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
1642
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
ResourceCommandServiceTests.cs (1)
1391
(_, _, _) => new InteractionCompletionState { Complete = true,
State
= canceled ? null : inputs },
Terminals\InteractionServiceTerminalTests.cs (1)
417
(_, _, _) => new InteractionCompletionState { Complete = true,
State
= state }, CancellationToken.None);
7 references to State
Aspire.Hosting (7)
InteractionService.cs (7)
138
var promptState = completion.
State
as bool?;
261
if (completion.
State
is not IReadOnlyList<InteractionInput> inputState)
291
var promptState = completion.
State
as bool?;
433
var promptState = completion.
State
as bool?;
540
result = new InteractionCompletionState { Complete = false, State = result.
State
};
570
if (completion.
State
is IReadOnlyList<InteractionInput>)
597
if (result.
State
is IReadOnlyList<InteractionInput> inputs)