27 references to KnownProperties
Aspire.Dashboard (27)
Components\Pages\Resources.razor.cs (1)
335if (current.GetResourcePropertyValue(KnownProperties.Resource.ParentName) is { Length: > 0 } value)
Model\KnownPropertyLookup.cs (18)
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)]) 36new(KnownProperties.Project.Path, loc[nameof(ResourcesDetailsProjectPathProperty)]), 37new(KnownProperties.Executable.Pid, loc[nameof(ResourcesDetailsExecutableProcessIdProperty)]), 43new(KnownProperties.Executable.Path, loc[nameof(ResourcesDetailsExecutablePathProperty)]), 44new(KnownProperties.Executable.WorkDir, loc[nameof(ResourcesDetailsExecutableWorkingDirectoryProperty)]), 45new(KnownProperties.Executable.Args, loc[nameof(ResourcesDetailsExecutableArgumentsProperty)]), 46new(KnownProperties.Executable.Pid, loc[nameof(ResourcesDetailsExecutableProcessIdProperty)]), 52new(KnownProperties.Container.Image, loc[nameof(ResourcesDetailsContainerImageProperty)]), 53new(KnownProperties.Container.Id, loc[nameof(ResourcesDetailsContainerIdProperty)]), 54new(KnownProperties.Container.Command, loc[nameof(ResourcesDetailsContainerCommandProperty)]), 55new(KnownProperties.Container.Args, loc[nameof(ResourcesDetailsContainerArgumentsProperty)]), 56new(KnownProperties.Container.Ports, loc[nameof(ResourcesDetailsContainerPortsProperty)]), 57new(KnownProperties.Container.Lifetime, loc[nameof(ResourcesDetailsContainerLifetimeProperty)]),
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\ResourceSourceViewModel.cs (1)
47if (resource.Properties.TryGetValue(KnownProperties.Resource.Source, out var property) && property.Value is { HasStringValue: true, StringValue: var value })
Model\ResourceViewModelExtensions.cs (5)
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);