31 references to KnownProperties
Aspire.Dashboard (31)
Components\Pages\Resources.razor.cs (3)
576if (current.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } value) 698.Where(r => _resourceByName.Values.Any(nested => nested.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == r.Name)) 736return _resourceByName.Values.Any(r => !string.IsNullOrEmpty(r.GetResourcePropertyValue(KnownProperties.Resource.ParentName)));
Model\KnownPropertyLookup.cs (18)
24new(KnownProperties.Resource.DisplayName, loc => loc[nameof(ResourcesDetailsDisplayNameProperty)]), 25new(KnownProperties.Resource.State, loc => loc[nameof(ResourcesDetailsStateProperty)]), 26new(KnownProperties.Resource.StartTime, loc => loc[nameof(ResourcesDetailsStartTimeProperty)]), 27new(KnownProperties.Resource.StopTime, loc => loc[nameof(ResourcesDetailsStopTimeProperty)]), 28new(KnownProperties.Resource.ExitCode, loc => loc[nameof(ResourcesDetailsExitCodeProperty)]), 29new(KnownProperties.Resource.HealthState, loc => loc[nameof(ResourcesDetailsHealthStateProperty)]) 35new(KnownProperties.Project.Path, loc => loc[nameof(ResourcesDetailsProjectPathProperty)]), 36new(KnownProperties.Executable.Pid, loc => loc[nameof(ResourcesDetailsExecutableProcessIdProperty)]), 42new(KnownProperties.Executable.Path, loc => loc[nameof(ResourcesDetailsExecutablePathProperty)]), 43new(KnownProperties.Executable.WorkDir, loc => loc[nameof(ResourcesDetailsExecutableWorkingDirectoryProperty)]), 44new(KnownProperties.Executable.Args, loc => loc[nameof(ResourcesDetailsExecutableArgumentsProperty)]), 45new(KnownProperties.Executable.Pid, loc => loc[nameof(ResourcesDetailsExecutableProcessIdProperty)]), 51new(KnownProperties.Container.Image, loc => loc[nameof(ResourcesDetailsContainerImageProperty)]), 52new(KnownProperties.Container.Id, loc => loc[nameof(ResourcesDetailsContainerIdProperty)]), 53new(KnownProperties.Container.Command, loc => loc[nameof(ResourcesDetailsContainerCommandProperty)]), 54new(KnownProperties.Container.Args, loc => loc[nameof(ResourcesDetailsContainerArgumentsProperty)]), 55new(KnownProperties.Container.Ports, loc => loc[nameof(ResourcesDetailsContainerPortsProperty)]), 56new(KnownProperties.Container.Lifetime, loc => loc[nameof(ResourcesDetailsContainerLifetimeProperty)]),
Model\ResourceGridViewModel.cs (2)
60foreach (var childGridVM in initialGridVMs.Where(r => r.Resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName) == resource.Name)) 75var parentName = gridViewModel.Resource.GetResourcePropertyValue(KnownProperties.Resource.ParentName);
Model\ResourceSourceViewModel.cs (1)
35if (resource.Properties.TryGetValue(KnownProperties.Resource.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
Model\ResourceViewModelExtensions.cs (7)
39return resource.TryGetCustomDataInt(KnownProperties.Resource.ExitCode, out exitCode); 44return resource.TryGetCustomDataString(KnownProperties.Container.Image, out containerImage); 49return resource.TryGetCustomDataString(KnownProperties.Project.Path, out projectPath); 54return resource.TryGetCustomDataString(KnownProperties.Executable.Path, out executablePath); 59return resource.TryGetCustomDataStringArray(KnownProperties.Executable.Args, out arguments); 64return resource.TryGetCustomDataStringArray(KnownProperties.Resource.AppArgs, out arguments); 69return resource.TryGetCustomDataBoolArray(KnownProperties.Resource.AppArgsSensitivity, out argParams);