3 writes to SelectedDuration
Aspire.Dashboard (3)
Components\Pages\Metrics.razor.cs (2)
105SelectedDuration = _durations.Single(d => d.Id == s_defaultDuration), 150viewModel.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)
135DurationMinutes = (int)PageViewModel.SelectedDuration.Id.TotalMinutes, 360new ComponentTelemetryProperty(TelemetryPropertyKeys.MetricsSelectedDuration, new AspireTelemetryProperty(PageViewModel.SelectedDuration.Id.ToString(), AspireTelemetryPropertyType.UserSetting)),
Components_Pages_Metrics_razor.g.cs (5)
691PageViewModel.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)); 1065PageViewModel.SelectedDuration.Id
Aspire.Dashboard.Components.Tests (1)
Pages\MetricsTests.cs (1)
360Assert.Equal(TimeSpan.FromMinutes(720), viewModel.SelectedDuration.Id);