11 references to Resource
Aspire.Dashboard (11)
Components\Pages\Resources.razor.cs (2)
337if (current.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } value) 483if (resource.Properties.TryGetValue(KnownProperties.Resource.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
Model\KnownPropertyLookup.cs (6)
25new(KnownProperties.Resource.DisplayName, loc[nameof(ResourcesDetailsDisplayNameProperty)]), 26new(KnownProperties.Resource.State, loc[nameof(ResourcesDetailsStateProperty)]), 27new(KnownProperties.Resource.StartTime, loc[nameof(ResourcesDetailsStartTimeProperty)]), 28new(KnownProperties.Resource.StopTime, loc[nameof(ResourcesDetailsStopTimeProperty)]), 29new(KnownProperties.Resource.ExitCode, loc[nameof(ResourcesDetailsExitCodeProperty)]), 30new(KnownProperties.Resource.HealthState, loc[nameof(ResourcesDetailsHealthStateProperty)])
Model\ResourceGridViewModel.cs (2)
61foreach (var childGridVM in initialGridVMs.Where(r => r.Resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == resource.Name)) 76var parentName = gridViewModel.Resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName);
Model\ResourceViewModelExtensions.cs (1)
39return resource.TryGetCustomDataInt(KnownProperties.Resource.ExitCode, out exitCode);