35 writes to State
Aspire.Hosting (10)
Dashboard\DashboardServiceData.cs (5)
207
return new InteractionCompletionState { Complete = true,
State
= request.MessageBox.Result };
209
return new InteractionCompletionState { Complete = true,
State
= request.Notification.Result };
211
return new InteractionCompletionState { Complete = true,
State
= request.PromptProgress.Result };
218
return new InteractionCompletionState { Complete = true,
State
= request.PromptTerminal.Result };
236
return new InteractionCompletionState { Complete = !request.ResponseUpdate,
State
= inputsInfo.Inputs };
InteractionService.cs (2)
377
CompleteWorkInteraction(newState, new InteractionCompletionState { Complete = true,
State
= true });
533
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 };
383
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
407
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
430
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
453
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
474
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
497
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
532
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
868
new InteractionCompletionState { Complete = true,
State
= inputs },
993
new InteractionCompletionState { Complete = false,
State
= inputsInteractionInfo.Inputs },
1050
new InteractionCompletionState { Complete = true,
State
= inputs },
1174
await CompleteInteractionAsync(interactionService, interaction.InteractionId, new InteractionCompletionState { Complete = true,
State
= false });
1210
await CompleteInteractionAsync(interactionService, interaction.InteractionId, new InteractionCompletionState { Complete = true,
State
= false });
1285
await CompleteInteractionAsync(interactionService, interaction.InteractionId, new InteractionCompletionState { Complete = true,
State
= false });
1361
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
1432
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
1480
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
1503
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
1537
new InteractionCompletionState { Complete = true,
State
= new[] { input } },
ResourceCommandServiceTests.cs (1)
1389
(_, _, _) => 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)
131
var promptState = completion.
State
as bool?;
254
if (completion.
State
is not IReadOnlyList<InteractionInput> inputState)
284
var promptState = completion.
State
as bool?;
426
var promptState = completion.
State
as bool?;
533
result = new InteractionCompletionState { Complete = false, State = result.
State
};
563
if (completion.
State
is IReadOnlyList<InteractionInput>)
590
if (result.
State
is IReadOnlyList<InteractionInput> inputs)