3 writes to Current
Aspire.Dashboard (3)
Model\ParameterInteractionState.cs (3)
97Current = current; 149Current = null; 179Current = null;
26 references to Current
Aspire.Dashboard (13)
Components\Controls\MissingParametersPanel.razor.cs (1)
83ParameterInteractionState.Current is { } current && _registration?.Shows(current) == true ? current : null;
Components\Interactions\InteractionsProvider.cs (2)
420if (ParameterInteractionState.Current?.Interaction.InteractionId == item.InteractionId) 422await 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. 70if (Current is not null || _notification is not { AcceptRequested: false } notification || !panel.Shows(notification.ParameterNames)) 86if (Current is not null && Current.Interaction.InteractionId != current.Interaction.InteractionId) 146if (Current?.Interaction.InteractionId == interactionId) 148Current.OnInteractionUpdated = null; 167if (Current is not { } current) 186if (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, 411Assert.Null(state.Current);
Aspire.Dashboard.Tests (11)
Model\ParameterInteractionStateTests.cs (11)
21Assert.Null(state.Current); 33Assert.Same(interaction, state.Current); 45Assert.Null(state.Current); 71Assert.Null(state.Current); 88Assert.Null(state.Current); 107Assert.Same(interaction, state.Current); 124Assert.Null(state.Current); 139Assert.Null(state.Current); 145Assert.Same(interaction, state.Current); 163Assert.Null(state.Current); 182Assert.Null(state.Current);