Implemented interface member:
property
PageViewModel
Aspire.Dashboard.Components.Pages.IPageWithSessionAndUrlState<TViewModel, TSerializableViewModel>.PageViewModel
1 write to PageViewModel
Aspire.Dashboard (1)
Components\Pages\StructuredLogs.razor.cs (1)
216
PageViewModel
= new StructuredLogsPageViewModel
21 references to PageViewModel
Aspire.Dashboard (21)
Components\Pages\StructuredLogs.razor.cs (12)
236
var application = _resources?.SingleOrDefault(a => a.ResourceKey ==
PageViewModel
.SelectedResource.Id?.GetResourceKey());
299
if (_logsSubscription is null || _logsSubscription.ResourceKey !=
PageViewModel
.SelectedResource.Id?.GetResourceKey())
302
_logsSubscription = TelemetryRepository.OnNewLogs(
PageViewModel
.SelectedResource.Id?.GetResourceKey(), SubscriptionType.Read, async () =>
371
PropertyKeys = TelemetryRepository.GetLogPropertyKeys(
PageViewModel
.SelectedResource.Id?.GetResourceKey()),
505
LogLevelText =
PageViewModel
.SelectedLogLevel.Id?.ToString().ToLowerInvariant(),
506
SelectedResource =
PageViewModel
.SelectedResource.Id is not null ?
PageViewModel
.SelectedResource.Name : null,
514
ViewModel.ResourceKey =
PageViewModel
.SelectedResource.Id?.GetResourceKey();
518
PageViewModel
.SelectedLogLevel = _logLevels.SingleOrDefault(e => e.Id == logLevel) ?? _logLevels[0];
522
PageViewModel
.SelectedLogLevel = _logLevels[0];
525
ViewModel.LogLevel =
PageViewModel
.SelectedLogLevel.Id;
620
new ComponentTelemetryProperty(TelemetryPropertyKeys.StructuredLogsSelectedLogLevel, new AspireTelemetryProperty(
PageViewModel
.SelectedLogLevel.Id?.ToString() ?? string.Empty, AspireTelemetryPropertyType.UserSetting)),
Components_Pages_StructuredLogs_razor.g.cs (9)
233
PageViewModel
.SelectedResource.Id?.ReplicaSetName
404
PageViewModel
.SelectedResource
410
__builder2.AddComponentParameter(25, nameof(global::Aspire.Dashboard.Components.Controls.ResourceSelect.SelectedResourceChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<global::Aspire.Dashboard.Model.Otlp.SelectViewModel<Aspire.Dashboard.Model.ResourceTypeDetails>>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Aspire.Dashboard.Model.Otlp.SelectViewModel<Aspire.Dashboard.Model.ResourceTypeDetails>>(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value => {
PageViewModel
.SelectedResource = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback:
418
); }, value:
PageViewModel
.SelectedResource),
PageViewModel
.SelectedResource))));
493
PageViewModel
.SelectedResource
699
PageViewModel
.SelectedLogLevel
705
__builder2.AddComponentParameter(55, nameof(global::Aspire.Dashboard.Components.Controls.LogLevelSelect.LogLevelChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<global::Aspire.Dashboard.Model.Otlp.SelectViewModel<Microsoft.Extensions.Logging.LogLevel?>>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::Aspire.Dashboard.Model.Otlp.SelectViewModel<Microsoft.Extensions.Logging.LogLevel?>>(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value =>
PageViewModel
.SelectedLogLevel = __value,
PageViewModel
.SelectedLogLevel))));