3 writes to SelectedDuration
Aspire.Dashboard (3)
Components\Pages\Metrics.razor.cs (2)
105
SelectedDuration
= _durations.Single(d => d.Id == s_defaultDuration),
150
viewModel.
SelectedDuration
= _durations.SingleOrDefault(d => (int)d.Id.TotalMinutes == DurationMinutes) ?? _durations.Single(d => d.Id == s_defaultDuration);
Components_Pages_Metrics_razor.g.cs (1)
697
__builder2.AddComponentParameter(49, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentSelect<SelectViewModel<TimeSpan>>.SelectedOptionChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<SelectViewModel<TimeSpan>>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<SelectViewModel<TimeSpan>>(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value => { PageViewModel.
SelectedDuration
= __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback:
8 references to SelectedDuration
Aspire.Dashboard (7)
Components\Pages\Metrics.razor.cs (2)
135
DurationMinutes = (int)PageViewModel.
SelectedDuration
.Id.TotalMinutes,
360
new ComponentTelemetryProperty(TelemetryPropertyKeys.MetricsSelectedDuration, new AspireTelemetryProperty(PageViewModel.
SelectedDuration
.Id.ToString(), AspireTelemetryPropertyType.UserSetting)),
Components_Pages_Metrics_razor.g.cs (5)
691
PageViewModel.
SelectedDuration
705
); }, value: PageViewModel.
SelectedDuration
), PageViewModel.
SelectedDuration
))));
706
__builder2.AddComponentParameter(50, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentSelect<SelectViewModel<TimeSpan>>.SelectedOptionExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<SelectViewModel<TimeSpan>>>>(() => PageViewModel.
SelectedDuration
));
1065
PageViewModel.
SelectedDuration
.Id
Aspire.Dashboard.Components.Tests (1)
Pages\MetricsTests.cs (1)
360
Assert.Equal(TimeSpan.FromMinutes(720), viewModel.
SelectedDuration
.Id);