3 writes to Current
Aspire.Dashboard (3)
Model\ParameterInteractionState.cs (3)
98
Current
= current;
150
Current
= null;
218
Current
= null;
30 references to Current
Aspire.Dashboard (14)
Components\Controls\MissingParametersPanel.razor.cs (1)
94
ParameterInteractionState.
Current
is { } current && _registration?.Shows(current) == true ? current : null;
Components\Interactions\InteractionsProvider.cs (3)
405
await InvokeAsync(() => shownInline = ParameterInteractionState.
Current
?.Interaction.InteractionId == interactionId).ConfigureAwait(false);
450
if (ParameterInteractionState.
Current
?.Interaction.InteractionId == item.InteractionId)
452
await ParameterInteractionState.
Current
.UpdateInteractionAsync(item);
Model\ParameterInteractionState.cs (10)
36
/// Raised when <see cref="
Current
"/> or its inputs change.
41
/// Raised when no mounted form can show <see cref="
Current
"/> anymore, for example after navigating away from it.
42
/// <see cref="
Current
"/> is cleared first, and the handler shows the interaction another way.
72
if (
Current
is not null || _notification is not { AcceptRequested: false } notification || !panel.Shows(notification.ParameterNames))
88
if (
Current
is not null &&
Current
.Interaction.InteractionId != current.Interaction.InteractionId)
147
if (
Current
?.Interaction.InteractionId == interactionId)
149
Current
.OnInteractionUpdated = null;
206
if (
Current
is not { } current)
225
if (
Current
is not null || _dialogInteraction is not { } dialogInteraction || !TrySetCurrent(dialogInteraction.Interaction))
Aspire.Dashboard.Components.Tests (5)
Interactions\InteractionsProviderTests.cs (5)
439
() => state.
Current
?.Interaction.InteractionId == 1,
451
Assert.Null(state.
Current
);
491
() => state.
Current
?.Interaction.InteractionId == 1,
493
var prompt = state.
Current
!;
509
Assert.Equal(1, state.
Current
?.Interaction.InteractionId);
Aspire.Dashboard.Tests (11)
Model\ParameterInteractionStateTests.cs (11)
21
Assert.Null(state.
Current
);
33
Assert.Same(interaction, state.
Current
);
45
Assert.Null(state.
Current
);
115
Assert.Null(state.
Current
);
132
Assert.Null(state.
Current
);
151
Assert.Same(interaction, state.
Current
);
168
Assert.Null(state.
Current
);
183
Assert.Null(state.
Current
);
189
Assert.Same(interaction, state.
Current
);
207
Assert.Null(state.
Current
);
226
Assert.Null(state.
Current
);