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