23 references to KnownProperties
Aspire.Hosting (23)
ApplicationModel\CustomResourceKnownProperties.cs (1)
16
public static string Source { get; } =
KnownProperties
.Resource.Source;
Dashboard\ResourceSnapshot.cs (7)
34
yield return (
KnownProperties
.Resource.Uid, Value.ForString(Uid));
35
yield return (
KnownProperties
.Resource.Name, Value.ForString(Name));
36
yield return (
KnownProperties
.Resource.Type, Value.ForString(ResourceType));
37
yield return (
KnownProperties
.Resource.DisplayName, Value.ForString(DisplayName));
38
yield return (
KnownProperties
.Resource.State, State is null ? Value.ForNull() : Value.ForString(State));
39
yield return (
KnownProperties
.Resource.ExitCode, ExitCode is null ? Value.ForNull() : Value.ForString(ExitCode.Value.ToString("D", CultureInfo.InvariantCulture)));
40
yield return (
KnownProperties
.Resource.CreateTime, CreationTimeStamp is null ? Value.ForNull() : Value.ForString(CreationTimeStamp.Value.ToString("O")));
Dcp\ApplicationExecutor.cs (15)
603
new(
KnownProperties
.Container.Image, container.Spec.Image),
604
new(
KnownProperties
.Container.Id, containerId),
605
new(
KnownProperties
.Container.Command, container.Spec.Command),
606
new(
KnownProperties
.Container.Args, container.Status?.EffectiveArgs ?? []),
607
new(
KnownProperties
.Container.Ports, GetPorts()),
658
new(
KnownProperties
.Executable.Path, executable.Spec.ExecutablePath),
659
new(
KnownProperties
.Executable.WorkDir, executable.Spec.WorkingDirectory),
660
new(
KnownProperties
.Executable.Args, executable.Status?.EffectiveArgs ?? []),
661
new(
KnownProperties
.Executable.Pid, executable.Status?.ProcessId),
662
new(
KnownProperties
.Project.Path, projectPath)
676
new(
KnownProperties
.Executable.Path, executable.Spec.ExecutablePath),
677
new(
KnownProperties
.Executable.WorkDir, executable.Spec.WorkingDirectory),
678
new(
KnownProperties
.Executable.Args, executable.Status?.EffectiveArgs ?? []),
679
new(
KnownProperties
.Executable.Pid, executable.Status?.ProcessId)
1442
new(
KnownProperties
.Container.Image, cr.ModelResource.TryGetContainerImageName(out var imageName) ? imageName : ""),