3 writes to Current
Aspire.Dashboard (3)
Model\ParameterInteractionState.cs (3)
97
Current
= current;
149
Current
= null;
179
Current
= null;
26 references to Current
Aspire.Dashboard (13)
Components\Controls\MissingParametersPanel.razor.cs (1)
83
ParameterInteractionState.
Current
is { } current && _registration?.Shows(current) == true ? current : null;
Components\Interactions\InteractionsProvider.cs (2)
420
if (ParameterInteractionState.
Current
?.Interaction.InteractionId == item.InteractionId)
422
await ParameterInteractionState.
Current
.UpdateInteractionAsync(item);
Model\ParameterInteractionState.cs (10)
34
/// Raised when <see cref="
Current
"/> or its inputs change.
39
/// Raised when no mounted form can show <see cref="
Current
"/> anymore, for example after navigating away from it.
40
/// <see cref="
Current
"/> is cleared first, and the handler shows the interaction another way.
70
if (
Current
is not null || _notification is not { AcceptRequested: false } notification || !panel.Shows(notification.ParameterNames))
86
if (
Current
is not null &&
Current
.Interaction.InteractionId != current.Interaction.InteractionId)
146
if (
Current
?.Interaction.InteractionId == interactionId)
148
Current
.OnInteractionUpdated = null;
167
if (
Current
is not { } current)
186
if (
Current
is not null || _dialogInteraction is not { } dialogInteraction || !TrySetCurrent(dialogInteraction.Interaction))
Aspire.Dashboard.Components.Tests (2)
Interactions\InteractionsProviderTests.cs (2)
401
() => state.
Current
?.Interaction.InteractionId == 1,
411
Assert.Null(state.
Current
);
Aspire.Dashboard.Tests (11)
Model\ParameterInteractionStateTests.cs (11)
21
Assert.Null(state.
Current
);
33
Assert.Same(interaction, state.
Current
);
45
Assert.Null(state.
Current
);
71
Assert.Null(state.
Current
);
88
Assert.Null(state.
Current
);
107
Assert.Same(interaction, state.
Current
);
124
Assert.Null(state.
Current
);
139
Assert.Null(state.
Current
);
145
Assert.Same(interaction, state.
Current
);
163
Assert.Null(state.
Current
);
182
Assert.Null(state.
Current
);