35 references to KnownProperties
Aspire.Hosting (35)
ApplicationModel\CustomResourceKnownProperties.cs (1)
16public static string Source { get; } = KnownProperties.Resource.Source;
Dashboard\ResourceSnapshot.cs (10)
38yield return (KnownProperties.Resource.Uid, Value.ForString(Uid), IsSensitive: false); 39yield return (KnownProperties.Resource.Name, Value.ForString(Name), IsSensitive: false); 40yield return (KnownProperties.Resource.Type, Value.ForString(ResourceType), IsSensitive: false); 41yield return (KnownProperties.Resource.DisplayName, Value.ForString(DisplayName), IsSensitive: false); 42yield return (KnownProperties.Resource.State, State is null ? Value.ForNull() : Value.ForString(State), IsSensitive: false); 43yield return (KnownProperties.Resource.ExitCode, ExitCode is null ? Value.ForNull() : Value.ForString(ExitCode.Value.ToString("D", CultureInfo.InvariantCulture)), IsSensitive: false); 44yield return (KnownProperties.Resource.CreateTime, CreationTimeStamp is null ? Value.ForNull() : Value.ForString(CreationTimeStamp.Value.ToString("O")), IsSensitive: false); 45yield return (KnownProperties.Resource.StartTime, StartTimeStamp is null ? Value.ForNull() : Value.ForString(StartTimeStamp.Value.ToString("O")), IsSensitive: false); 46yield return (KnownProperties.Resource.StopTime, StopTimeStamp is null ? Value.ForNull() : Value.ForString(StopTimeStamp.Value.ToString("O")), IsSensitive: false); 47yield return (KnownProperties.Resource.HealthState, CustomResourceSnapshot.ComputeHealthStatus(HealthReports, State) is not { } healthStatus ? Value.ForNull() : Value.ForString(healthStatus.ToString()), IsSensitive: false);
Dcp\ResourceSnapshotBuilder.cs (21)
47new(KnownProperties.Container.Image, container.Spec.Image), 48new(KnownProperties.Container.Id, containerId), 49new(KnownProperties.Container.Command, container.Spec.Command), 50new(KnownProperties.Container.Args, container.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 51new(KnownProperties.Container.Ports, GetPorts()), 52new(KnownProperties.Container.Lifetime, GetContainerLifetime()), 53new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 54new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 122new(KnownProperties.Executable.Path, executable.Spec.ExecutablePath), 123new(KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 124new(KnownProperties.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 125new(KnownProperties.Executable.Pid, executable.Status?.ProcessId), 126new(KnownProperties.Project.Path, projectPath), 127new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 128new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 145new(KnownProperties.Executable.Path, executable.Spec.ExecutablePath), 146new(KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 147new(KnownProperties.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true }, 148new(KnownProperties.Executable.Pid, executable.Status?.ProcessId), 149new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 150new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false },
Orchestrator\ApplicationOrchestrator.cs (3)
122Properties = s.Properties.SetResourceProperty(KnownProperties.Container.Image, context.Resource.TryGetContainerImageName(out var imageName) ? imageName : ""), 288Properties = s.Properties.SetResourceProperty(KnownProperties.Resource.ParentName, parentName) 308Properties = s.Properties.SetResourceProperty(KnownProperties.Resource.ParentName, parentName)