28 references to KnownProperties
Aspire.Hosting (28)
ApplicationModel\CustomResourceKnownProperties.cs (1)
16
public static string Source { get; } =
KnownProperties
.Resource.Source;
Dashboard\ResourceSnapshot.cs (10)
38
yield return (
KnownProperties
.Resource.Uid, Value.ForString(Uid), IsSensitive: false);
39
yield return (
KnownProperties
.Resource.Name, Value.ForString(Name), IsSensitive: false);
40
yield return (
KnownProperties
.Resource.Type, Value.ForString(ResourceType), IsSensitive: false);
41
yield return (
KnownProperties
.Resource.DisplayName, Value.ForString(DisplayName), IsSensitive: false);
42
yield return (
KnownProperties
.Resource.State, State is null ? Value.ForNull() : Value.ForString(State), IsSensitive: false);
43
yield return (
KnownProperties
.Resource.ExitCode, ExitCode is null ? Value.ForNull() : Value.ForString(ExitCode.Value.ToString("D", CultureInfo.InvariantCulture)), IsSensitive: false);
44
yield return (
KnownProperties
.Resource.CreateTime, CreationTimeStamp is null ? Value.ForNull() : Value.ForString(CreationTimeStamp.Value.ToString("O")), IsSensitive: false);
45
yield return (
KnownProperties
.Resource.StartTime, StartTimeStamp is null ? Value.ForNull() : Value.ForString(StartTimeStamp.Value.ToString("O")), IsSensitive: false);
46
yield return (
KnownProperties
.Resource.StopTime, StopTimeStamp is null ? Value.ForNull() : Value.ForString(StopTimeStamp.Value.ToString("O")), IsSensitive: false);
47
yield return (
KnownProperties
.Resource.HealthState, CustomResourceSnapshot.ComputeHealthStatus(HealthReports, State) is not { } healthStatus ? Value.ForNull() : Value.ForString(healthStatus.ToString()), IsSensitive: false);
Dcp\ApplicationExecutor.cs (17)
221
Properties = s.Properties.SetResourceProperty(
KnownProperties
.Resource.ParentName, parentName)
631
new(
KnownProperties
.Container.Image, container.Spec.Image),
632
new(
KnownProperties
.Container.Id, containerId),
633
new(
KnownProperties
.Container.Command, container.Spec.Command),
634
new(
KnownProperties
.Container.Args, container.Status?.EffectiveArgs ?? []) { IsSensitive = true },
635
new(
KnownProperties
.Container.Ports, GetPorts()),
636
new(
KnownProperties
.Container.Lifetime, GetContainerLifetime()),
702
new(
KnownProperties
.Executable.Path, executable.Spec.ExecutablePath),
703
new(
KnownProperties
.Executable.WorkDir, executable.Spec.WorkingDirectory),
704
new(
KnownProperties
.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true },
705
new(
KnownProperties
.Executable.Pid, executable.Status?.ProcessId),
706
new(
KnownProperties
.Project.Path, projectPath)
723
new(
KnownProperties
.Executable.Path, executable.Spec.ExecutablePath),
724
new(
KnownProperties
.Executable.WorkDir, executable.Spec.WorkingDirectory),
725
new(
KnownProperties
.Executable.Args, executable.Status?.EffectiveArgs ?? []) { IsSensitive = true },
726
new(
KnownProperties
.Executable.Pid, executable.Status?.ProcessId)
1549
new(
KnownProperties
.Container.Image, cr.ModelResource.TryGetContainerImageName(out var imageName) ? imageName : ""),