1 write to Status
Aspire.Hosting (1)
Dcp\Model\Service.cs (1)
99
Status
= new();
44 references to Status
Aspire.Hosting (44)
Dcp\ApplicationExecutor.cs (21)
438
if (resource is Container c && c.
Status
is { } status)
610
var containerId = container.
Status
?.ContainerId;
614
var environment = GetEnvironmentVariables(container.
Status
?.EffectiveEnv ?? container.Spec.Env, container.Spec.Env);
615
var state = container.AppModelInitialState == KnownResourceStates.Hidden ? KnownResourceStates.Hidden : container.
Status
?.State;
629
ExitCode = container.
Status
?.ExitCode is null or Conventions.UnknownExitCode ? null : container.
Status
.ExitCode,
634
new(KnownProperties.Container.Args, container.
Status
?.EffectiveArgs ?? []) { IsSensitive = true },
640
StartTimeStamp = container.
Status
?.StartupTimestamp?.ToUniversalTime(),
641
StopTimeStamp = container.
Status
?.FinishTimestamp?.ToUniversalTime(),
682
var state = executable.AppModelInitialState is "Hidden" ? "Hidden" : executable.
Status
?.State;
686
var environment = GetEnvironmentVariables(executable.
Status
?.EffectiveEnv, executable.Spec.Env);
700
ExitCode = executable.
Status
?.ExitCode,
704
new(KnownProperties.Executable.Args, executable.
Status
?.EffectiveArgs ?? []) { IsSensitive = true },
705
new(KnownProperties.Executable.Pid, executable.
Status
?.ProcessId),
710
StartTimeStamp = executable.
Status
?.StartupTimestamp?.ToUniversalTime(),
711
StopTimeStamp = executable.
Status
?.FinishTimestamp?.ToUniversalTime(),
721
ExitCode = executable.
Status
?.ExitCode,
725
new(KnownProperties.Executable.Args, executable.
Status
?.EffectiveArgs ?? []) { IsSensitive = true },
726
new(KnownProperties.Executable.Pid, executable.
Status
?.ProcessId)
730
StartTimeStamp = executable.
Status
?.StartupTimestamp?.ToUniversalTime(),
731
StopTimeStamp = executable.
Status
?.FinishTimestamp?.ToUniversalTime(),
Dcp\Model\Container.cs (8)
377
this.
Status
?.State == ContainerState.Starting
378
|| this.
Status
?.State == ContainerState.Building
379
|| this.
Status
?.State == ContainerState.Running
380
|| this.
Status
?.State == ContainerState.Paused
381
|| this.
Status
?.State == ContainerState.Stopping
382
|| this.
Status
?.State == ContainerState.Exited
383
|| (this.
Status
?.State == ContainerState.FailedToStart && this.
Status
?.ContainerId is not null);
Dcp\Model\ContainerExec.cs (3)
139
this.
Status
?.State == ExecutableState.Running
140
|| this.
Status
?.State == ExecutableState.Finished
141
|| this.
Status
?.State == ExecutableState.Terminated;
Dcp\Model\Executable.cs (3)
205
this.
Status
?.State == ExecutableState.Running
206
|| this.
Status
?.State == ExecutableState.Finished
207
|| this.
Status
?.State == ExecutableState.Terminated;
Dcp\Model\Service.cs (9)
87
public int? AllocatedPort => Spec.Port ??
Status
?.EffectivePort;
88
public string? AllocatedAddress => Spec.Address ??
Status
?.EffectiveAddress;
97
if (
Status
is null)
101
if (other.
Status
?.EffectiveAddress is not null)
103
Status
.EffectiveAddress = other.
Status
.EffectiveAddress;
105
if (other.
Status
?.EffectivePort is not null)
107
Status
.EffectivePort = other.
Status
.EffectivePort;